/** * Exact equality based on typeNames, namespace, attributes and ancestors, including the user * maps contents */ public static boolean equalsExact(SimpleFeatureType typeA, SimpleFeatureType typeB) { return equals(typeA, typeB, true); }
/** Exact equality based on typeNames, namespace, attributes and ancestors */ static boolean equals( SimpleFeatureType typeA, SimpleFeatureType typeB, boolean compareUserMaps) { if (typeA == typeB) return true; if (typeA == null || typeB == null) { return false; } if (!typeA.equals(typeB)) { return false; } if (compareUserMaps) { if (!equals(typeA.getUserData(), typeB.getUserData())) return false; } return equalsId(typeA, typeB) && equals( typeA.getAttributeDescriptors(), typeB.getAttributeDescriptors(), compareUserMaps) && equalsAncestors(typeA, typeB); }
static boolean equals( AttributeDescriptor attributesA[], AttributeDescriptor attributesB[], boolean compareUserMaps) { if (attributesA.length != attributesB.length) return false; for (int i = 0, length = attributesA.length; i < length; i++) { if (!equals(attributesA[i], attributesB[i], compareUserMaps)) return false; } return true; } /**
/** Exact equality based on typeNames, namespace, attributes and ancestors */ public static boolean equals( FeatureType typeA, FeatureType typeB ) { if (typeA == typeB) return true; if (typeA == null || typeB == null) { return false; } return equalsId(typeA, typeB) && equals(typeA.getAttributeTypes(), typeB.getAttributeTypes()) && equalsAncestors( typeA, typeB ); }
public static boolean equalsExact(List attributesA, List attributesB) { return equals(attributesA, attributesB, true); }
/** Exact equality based on typeNames, namespace, attributes and ancestors */ public static boolean equals(SimpleFeatureType typeA, SimpleFeatureType typeB) { return equals(typeA, typeB, false); }
public static boolean equals( AttributeDescriptor attributesA[], AttributeDescriptor attributesB[]) { return equals(attributesA, attributesB, false); }
public static boolean equalsExact( AttributeDescriptor attributesA[], AttributeDescriptor attributesB[]) { return equals(attributesA, attributesB, true); }
public static boolean equals(List attributesA, List attributesB) { return equals(attributesA, attributesB, false); }
public static boolean equalsExact(AttributeDescriptor a, AttributeDescriptor b) { return equals(a, b, true); }
public static boolean equals(AttributeDescriptor a, AttributeDescriptor b) { return equals(a, b, false); }
static boolean equals(List attributesA, List attributesB, boolean compareUserMaps) { return equals( (AttributeDescriptor[]) attributesA.toArray(new AttributeDescriptor[attributesA.size()]), (AttributeDescriptor[]) attributesB.toArray(new AttributeDescriptor[attributesB.size()]), compareUserMaps); }
if (entries.containsKey(typeName)) { MemoryEntry entry = (MemoryEntry) entries.get(typeName); if (FeatureTypes.equals(entry.schema, schema)) { return entry; } else {
static boolean equals(AttributeDescriptor a, AttributeDescriptor b, boolean compareUserMaps) { if (a == b) return true; if (a == null) return true; if (!a.equals(b)) return false; if (compareUserMaps) { if (!equals(a.getUserData(), b.getUserData())) return false; if (!equals(a.getType().getUserData(), b.getType().getUserData())) return false; } return true; }
/** Exact equality based on typeNames, namespace, attributes and ancestors, including the user maps contents */ public static boolean equalsExact( SimpleFeatureType typeA, SimpleFeatureType typeB ) { return equals(typeA, typeB, true); }
static boolean equals( AttributeDescriptor attributesA[], AttributeDescriptor attributesB[], boolean compareUserMaps ) { if (attributesA.length != attributesB.length) return false; for( int i = 0, length = attributesA.length; i < length; i++ ) { if (!equals(attributesA[i], attributesB[i], compareUserMaps)) return false; } return true; } /**
public static boolean equals( AttributeDescriptor a, AttributeDescriptor b) { return equals(a, b, false); }
public static boolean equals( AttributeType attributesA[], AttributeType attributesB[] ) { if (attributesA.length != attributesB.length) return false; for( int i = 0, length = attributesA.length; i < length; i++ ) { if (!equals(attributesA[i], attributesB[i])) return false; } return true; } /**
static boolean equals( List attributesA, List attributesB, boolean compareUserMaps) { return equals( (AttributeDescriptor[]) attributesA.toArray(new AttributeDescriptor[attributesA.size()]), (AttributeDescriptor[]) attributesB.toArray(new AttributeDescriptor[attributesB.size()]), compareUserMaps); }
if (!FeatureTypes.equals(readSchema, resultSchema)) { return new ReTypeFeatureReader(reader, resultSchema); } else {