@Override public boolean equals(Object object) { if (this == object) { return true; } if (object != null && object.getClass() == UnionDataSchema.class) { UnionDataSchema other = (UnionDataSchema) object; return super.equals(other) && _members.equals(other._members); } return false; }
@Override public int hashCode() { return super.hashCode() ^ _members.hashCode(); }
schema.setProperties(properties);
@Override public int hashCode() { return super.hashCode() ^ _values.hashCode(); }
@Override public boolean equals(Object object) { if (object != null && object instanceof NamedDataSchema) { // Location is not used for comparison. // Equal if the schema is the same. NamedDataSchema other = (NamedDataSchema) object; return super.equals(object) && _name.equals(other._name) && _doc.equals(other._doc) && _aliases.equals(other._aliases); } return false; }
@Override public int hashCode() { return getType().hashCode() ^ _properties.hashCode(); }
@Override public int hashCode() { return super.hashCode() ^ _items.hashCode(); }
@Override public boolean equals(Object object) { if (this == object) { return true; } if (object != null && object.getClass() == MapDataSchema.class) { MapDataSchema other = (MapDataSchema) object; return super.equals(other) && _values.equals(other._values); } return false; }
@Override public int hashCode() { // Location is not used in hashCode return super.hashCode() ^ _name.hashCode() ^ _doc.hashCode() ^ _aliases.hashCode(); }
@Override public boolean equals(Object object) { if (this == object) { return true; } if (object != null && object.getClass() == ArrayDataSchema.class) { ArrayDataSchema other = (ArrayDataSchema) object; return super.equals(other) && _items.equals(other._items); } return false; }