@Test public void testEquals() { SimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder(); builder.setName("SomeFeature"); builder.setCRS(null); builder.add("name", String.class); builder.add("geom1", Point.class); builder.add("geom2", Point.class); builder.setDefaultGeometry("geom1"); SimpleFeatureType ft1 = builder.buildFeatureType(); builder.setName("SomeFeature"); builder.setCRS(null); builder.add("name", String.class); builder.add("geom1", Point.class); builder.add("geom2", Point.class); builder.setDefaultGeometry("geom1"); SimpleFeatureType ft2 = builder.buildFeatureType(); assertTrue(FeatureTypes.equalsExact(ft1, ft2)); builder.setName("SomeFeature"); builder.setCRS(null); builder.add("name", String.class); builder.add("geom1", Point.class); builder.add("geom2", Point.class); builder.setDefaultGeometry("geom2"); ft2 = builder.buildFeatureType(); assertFalse(FeatureTypes.equalsExact(ft1, ft2)); }
public static boolean equals(SimpleFeatureType typeA, SimpleFeatureType typeB) { return equals(typeA, typeB, false); }
FeatureTypes { public static boolean equals(SimpleFeatureType typeA, SimpleFeatureType typeB) { return equals(typeA, typeB, false); } }
FeatureTypes { public static boolean equals(SimpleFeatureType typeA, SimpleFeatureType typeB) { return equals(typeA, typeB, false); }  }
FeatureTypes { public static boolean equals(SimpleFeatureType typeA, SimpleFeatureType typeB) { return equals(typeA, typeB, false); }  static Filter createLengthRestriction(int length); static int getFieldLength(PropertyDescriptor descriptor); static List<?> getFieldOptions(PropertyDescriptor descriptor); static Filter createFieldOptions(Collection<?> options); static SimpleFeatureType transform(
            SimpleFeatureType schema, CoordinateReferenceSystem crs); static SimpleFeatureType transform(
            SimpleFeatureType schema, CoordinateReferenceSystem crs, boolean forceOnlyMissing); static SimpleFeature transform(
            SimpleFeature feature, SimpleFeatureType schema, MathTransform transform); static SimpleFeatureType newFeatureType(
            AttributeDescriptor[] types,
            String name,
            URI ns,
            boolean isAbstract,
            SimpleFeatureType[] superTypes); static SimpleFeatureType newFeatureType(
            AttributeDescriptor[] types,
            String name,
            URI ns,
            boolean isAbstract,
            SimpleFeatureType[] superTypes,
            AttributeDescriptor defaultGeometry); static SimpleFeatureType newFeatureType(
            AttributeDescriptor[] types,
            String name,
            URI ns,
            boolean isAbstract,
            SimpleFeatureType[] superTypes,
            GeometryDescriptor defaultGeometry); static SimpleFeatureType newFeatureType(
            AttributeDescriptor[] types, String name, URI ns, boolean isAbstract); static SimpleFeatureType newFeatureType(AttributeDescriptor[] types, String name, URI ns); static SimpleFeatureType newFeatureType(AttributeDescriptor[] types, String name); static List<FeatureType> getAncestors(FeatureType featureType); static boolean matches(FeatureType featureType, Name name); static boolean isDecendedFrom(FeatureType featureType, URI namespace, String typeName); static boolean isDecendedFrom(FeatureType featureType, FeatureType isParentType); static boolean equals(SimpleFeatureType typeA, SimpleFeatureType typeB); static boolean equalsExact(SimpleFeatureType typeA, SimpleFeatureType typeB); static boolean equals(List attributesA, List attributesB); static boolean equalsExact(List attributesA, List attributesB); static boolean equals(
            AttributeDescriptor attributesA[], AttributeDescriptor attributesB[]); static boolean equalsExact(
            AttributeDescriptor attributesA[], AttributeDescriptor attributesB[]); static boolean equalsAncestors(SimpleFeatureType typeA, SimpleFeatureType typeB); static Set ancestors(SimpleFeatureType featureType); static boolean equals(AttributeDescriptor a, AttributeDescriptor b); static boolean equalsExact(AttributeDescriptor a, AttributeDescriptor b); static boolean equalsId(SimpleFeatureType typeA, SimpleFeatureType typeB); }
FeatureTypes { public static boolean equals(SimpleFeatureType typeA, SimpleFeatureType typeB) { return equals(typeA, typeB, false); }  static Filter createLengthRestriction(int length); static int getFieldLength(PropertyDescriptor descriptor); static List<?> getFieldOptions(PropertyDescriptor descriptor); static Filter createFieldOptions(Collection<?> options); static SimpleFeatureType transform(
            SimpleFeatureType schema, CoordinateReferenceSystem crs); static SimpleFeatureType transform(
            SimpleFeatureType schema, CoordinateReferenceSystem crs, boolean forceOnlyMissing); static SimpleFeature transform(
            SimpleFeature feature, SimpleFeatureType schema, MathTransform transform); static SimpleFeatureType newFeatureType(
            AttributeDescriptor[] types,
            String name,
            URI ns,
            boolean isAbstract,
            SimpleFeatureType[] superTypes); static SimpleFeatureType newFeatureType(
            AttributeDescriptor[] types,
            String name,
            URI ns,
            boolean isAbstract,
            SimpleFeatureType[] superTypes,
            AttributeDescriptor defaultGeometry); static SimpleFeatureType newFeatureType(
            AttributeDescriptor[] types,
            String name,
            URI ns,
            boolean isAbstract,
            SimpleFeatureType[] superTypes,
            GeometryDescriptor defaultGeometry); static SimpleFeatureType newFeatureType(
            AttributeDescriptor[] types, String name, URI ns, boolean isAbstract); static SimpleFeatureType newFeatureType(AttributeDescriptor[] types, String name, URI ns); static SimpleFeatureType newFeatureType(AttributeDescriptor[] types, String name); static List<FeatureType> getAncestors(FeatureType featureType); static boolean matches(FeatureType featureType, Name name); static boolean isDecendedFrom(FeatureType featureType, URI namespace, String typeName); static boolean isDecendedFrom(FeatureType featureType, FeatureType isParentType); static boolean equals(SimpleFeatureType typeA, SimpleFeatureType typeB); static boolean equalsExact(SimpleFeatureType typeA, SimpleFeatureType typeB); static boolean equals(List attributesA, List attributesB); static boolean equalsExact(List attributesA, List attributesB); static boolean equals(
            AttributeDescriptor attributesA[], AttributeDescriptor attributesB[]); static boolean equalsExact(
            AttributeDescriptor attributesA[], AttributeDescriptor attributesB[]); static boolean equalsAncestors(SimpleFeatureType typeA, SimpleFeatureType typeB); static Set ancestors(SimpleFeatureType featureType); static boolean equals(AttributeDescriptor a, AttributeDescriptor b); static boolean equalsExact(AttributeDescriptor a, AttributeDescriptor b); static boolean equalsId(SimpleFeatureType typeA, SimpleFeatureType typeB); static final URI DEFAULT_NAMESPACE; static final SimpleFeatureType ABSTRACT_FEATURE_TYPE; static final NameImpl DEFAULT_TYPENAME; static final int ANY_LENGTH; static final SimpleFeatureType EMPTY; }