@Test void testIsReference() { EStructuralFeature attribute = mock(EAttribute.class); EStructuralFeature reference = mock(EReference.class); assertThat(EFeatures.isReference(reference)).isTrue(); assertThat(EFeatures.isReference(attribute)).isFalse(); }
public static boolean isReference(EStructuralFeature feature) { return feature instanceof EReference; }
EFeatures { public static boolean isReference(EStructuralFeature feature) { return feature instanceof EReference; } }
EFeatures { public static boolean isReference(EStructuralFeature feature) { return feature instanceof EReference; } private  EFeatures(); }
EFeatures { public static boolean isReference(EStructuralFeature feature) { return feature instanceof EReference; } private  EFeatures(); static boolean isAttribute(EStructuralFeature feature); static boolean isReference(EStructuralFeature feature); @Nonnull static EAttribute asAttribute(EStructuralFeature feature); @Nonnull static EReference asReference(EStructuralFeature feature); }
EFeatures { public static boolean isReference(EStructuralFeature feature) { return feature instanceof EReference; } private  EFeatures(); static boolean isAttribute(EStructuralFeature feature); static boolean isReference(EStructuralFeature feature); @Nonnull static EAttribute asAttribute(EStructuralFeature feature); @Nonnull static EReference asReference(EStructuralFeature feature);  }