@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof Tuple4) { Tuple4<?, ?, ?, ?> that = (Tuple4<?, ?, ?, ?>)obj; return ObjectUtil.isEqualWithNulls(this.v1, that.v1) && ObjectUtil.isEqualWithNulls(this.v2, that.v2) && ObjectUtil.isEqualWithNulls(this.v3, that.v3) && ObjectUtil.isEqualWithNulls(this.v4, that.v4); } return false; }
@Override public int compare( UniqueKey<K> o1, UniqueKey<K> o2 ) { if (o1 == o2) return 0; int diff = ObjectUtil.compareWithNulls((Comparable<?>)o1.actualKey, (Comparable<?>)o2.actualKey); if (diff != 0) return diff; long ldiff = o1.id - o2.id; return ldiff == 0L ? 0 : (ldiff <= 0L ? -1 : 1); }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof AttributeTest) { AttributeTest that = (AttributeTest)obj; return ObjectUtil.isEqualWithNulls(this.typeName, that.typeName) && ObjectUtil.isEqualWithNulls(this.attributeNameOrWildcard, that.attributeNameOrWildcard); } return false; }
@Override public int compare( NodeKey key1, NodeKey key2 ) { return ObjectUtil.compareWithNulls(key1, key2); }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof ColumnExpression) { ColumnExpression that = (ColumnExpression)obj; if (!ObjectUtil.isEqualWithNulls(this.selectorName, that.selectorName)) return false; if (!ObjectUtil.isEqualWithNulls(this.propertyName, that.propertyName)) return false; if (!ObjectUtil.isEqualWithNulls(this.columnName, that.columnName)) return false; return true; } return false; }
@Override public int compare( NodeKey key1, NodeKey key2 ) { return ObjectUtil.compareWithNulls(key1, key2); }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof ColumnExpression) { ColumnExpression that = (ColumnExpression)obj; if (!ObjectUtil.isEqualWithNulls(this.selectorName, that.selectorName)) return false; if (!ObjectUtil.isEqualWithNulls(this.propertyName, that.propertyName)) return false; if (!ObjectUtil.isEqualWithNulls(this.columnName, that.columnName)) return false; return true; } return false; }
@Override public int compare( UniqueKey<K> o1, UniqueKey<K> o2 ) { if (o1 == o2) return 0; int diff = ObjectUtil.compareWithNulls((Comparable<?>)o1.actualKey, (Comparable<?>)o2.actualKey); if (diff != 0) return diff; long ldiff = o1.id - o2.id; return ldiff == 0L ? 0 : (ldiff <= 0L ? -1 : 1); }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof Tuple2) { Tuple2<?, ?> that = (Tuple2<?, ?>)obj; return ObjectUtil.isEqualWithNulls(this.v1, that.v1) && ObjectUtil.isEqualWithNulls(this.v2, that.v2); } return false; }
/** * {@inheritDoc} * * @see java.lang.Comparable#compareTo(java.lang.Object) */ @Override public int compareTo( Property that ) { if (this == that) return 0; if (that == null) return 1; int diff = ObjectUtil.compareWithNulls(this.category, that.category); if (diff != 0) return diff; diff = ObjectUtil.compareWithNulls(this.label, that.label); if (diff != 0) return diff; diff = ObjectUtil.compareWithNulls(this.name, that.name); if (diff != 0) return diff; return 0; }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof NameTest) { NameTest that = (NameTest)obj; return ObjectUtil.isEqualWithNulls(this.prefixTest, that.prefixTest) && ObjectUtil.isEqualWithNulls(this.localTest, that.localTest); } return false; }
/** * {@inheritDoc} * * @see java.lang.Comparable#compareTo(java.lang.Object) */ @Override public int compareTo( Property that ) { if (this == that) return 0; if (that == null) return 1; int diff = ObjectUtil.compareWithNulls(this.category, that.category); if (diff != 0) return diff; diff = ObjectUtil.compareWithNulls(this.label, that.label); if (diff != 0) return diff; diff = ObjectUtil.compareWithNulls(this.name, that.name); if (diff != 0) return diff; return 0; }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof ElementTest) { ElementTest that = (ElementTest)obj; return ObjectUtil.isEqualWithNulls(this.typeName, that.typeName) && ObjectUtil.isEqualWithNulls(this.elementNameOrWildcard, that.elementNameOrWildcard); } return false; }
/** * {@inheritDoc} * * @see java.lang.Comparable#compareTo(java.lang.Object) */ @Override public int compareTo( Property that ) { if (this == that) return 0; if (that == null) return 1; int diff = ObjectUtil.compareWithNulls(this.category, that.category); if (diff != 0) return diff; diff = ObjectUtil.compareWithNulls(this.label, that.label); if (diff != 0) return diff; diff = ObjectUtil.compareWithNulls(this.name, that.name); if (diff != 0) return diff; return 0; }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof NameTest) { NameTest that = (NameTest)obj; return ObjectUtil.isEqualWithNulls(this.prefixTest, that.prefixTest) && ObjectUtil.isEqualWithNulls(this.localTest, that.localTest); } return false; }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof Tuple3) { Tuple3<?, ?, ?> that = (Tuple3<?, ?, ?>)obj; return ObjectUtil.isEqualWithNulls(this.v1, that.v1) && ObjectUtil.isEqualWithNulls(this.v2, that.v2) && ObjectUtil.isEqualWithNulls(this.v3, that.v3); } return false; }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof AttributeTest) { AttributeTest that = (AttributeTest)obj; return ObjectUtil.isEqualWithNulls(this.typeName, that.typeName) && ObjectUtil.isEqualWithNulls(this.attributeNameOrWildcard, that.attributeNameOrWildcard); } return false; }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof ElementTest) { ElementTest that = (ElementTest)obj; return ObjectUtil.isEqualWithNulls(this.typeName, that.typeName) && ObjectUtil.isEqualWithNulls(this.elementNameOrWildcard, that.elementNameOrWildcard); } return false; }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof Tuple2) { Tuple2<?, ?> that = (Tuple2<?, ?>)obj; return ObjectUtil.isEqualWithNulls(this.v1, that.v1) && ObjectUtil.isEqualWithNulls(this.v2, that.v2); } return false; }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof Tuple3) { Tuple3<?, ?, ?> that = (Tuple3<?, ?, ?>)obj; return ObjectUtil.isEqualWithNulls(this.v1, that.v1) && ObjectUtil.isEqualWithNulls(this.v2, that.v2) && ObjectUtil.isEqualWithNulls(this.v3, that.v3); } return false; }