@Override public double evaluate( final Object first, final Object second) { return (ObjectUtil.equalsSafe(first, second) ? 0.0 : 1.0); }
@Override public boolean equals( final Object other) { return (this == other) || (other instanceof DefaultTextual && ObjectUtil.equalsSafe(this.text, ((DefaultTextual) other).text)); }
@Override public boolean equals( final Object other) { return (this == other) || (other instanceof DefaultTextual && ObjectUtil.equalsSafe(this.text, ((DefaultTextual) other).text)); }
@Override public double evaluate( final Object first, final Object second) { return (ObjectUtil.equalsSafe(first, second) ? 0.0 : 1.0); }
@Override public boolean equals( final Object other) { return (this == other) || (other instanceof DefaultTextual && ObjectUtil.equalsSafe(this.text, ((DefaultTextual) other).text)); }
@Override public double evaluate( final Object first, final Object second) { return (ObjectUtil.equalsSafe(first, second) ? 0.0 : 1.0); }
/** * Determines if this object is equal to the given object. They are equal if * they have equal indices and terms. * * @param other * Another object. * @return * True if the this is equal to the given object. Otherwise, false. */ public boolean equals( final DefaultIndexedTerm other) { return other != null && this.index == other.index && ObjectUtil.equalsSafe(this.term, other.term); }
/** * Determines if this object is equal to the given object. They are equal * if they have the same source, target, and similarity. * * @param other * Another object. * @return * True if the two objects are equal; otherwise, false. */ public boolean equals( final IndexedTermSimilarityRelation other) { return other != null && this.similarity == other.similarity && ObjectUtil.equalsSafe(this.source, other.source) && ObjectUtil.equalsSafe(this.target, other.target); }
/** * Determines if this object is equal to the given object. They are equal if * they have equal indices and terms. * * @param other * Another object. * @return * True if the this is equal to the given object. Otherwise, false. */ public boolean equals( final DefaultIndexedTerm other) { return other != null && this.index == other.index && ObjectUtil.equalsSafe(this.term, other.term); }
/** * Determines if this object is equal to the given object. They are equal * if they have the same source, target, and similarity. * * @param other * Another object. * @return * True if the two objects are equal; otherwise, false. */ public boolean equals( final IndexedTermSimilarityRelation other) { return other != null && this.similarity == other.similarity && ObjectUtil.equalsSafe(this.source, other.source) && ObjectUtil.equalsSafe(this.target, other.target); }
public boolean equals( final Pair<FirstType, SecondType> other) { return other != null && ObjectUtil.equalsSafe(this.getFirst(), other.getFirst()) && ObjectUtil.equalsSafe(this.getSecond(), other.getSecond()); }
public boolean equals( final Pair<FirstType, SecondType> other) { return other != null && ObjectUtil.equalsSafe(this.getFirst(), other.getFirst()) && ObjectUtil.equalsSafe(this.getSecond(), other.getSecond()); }
/** * Returns true if the two converters have the same label. * * @param other Another CogxelVectorConverter. * @return True if the two converters have the same label. */ public boolean equals( CogxelDoubleConverter other) { return other != null && ObjectUtil.equalsSafe(this.getLabel(), other.getLabel()); }
/** * Returns true if the two converters have the same label. * * @param other Another CogxelVectorConverter. * @return True if the two converters have the same label. */ public boolean equals( CogxelDoubleConverter other) { return other != null && ObjectUtil.equalsSafe(this.getLabel(), other.getLabel()); }
public boolean equals( final Pair<FirstType, SecondType> other) { return other != null && ObjectUtil.equalsSafe(this.getFirst(), other.getFirst()) && ObjectUtil.equalsSafe(this.getSecond(), other.getSecond()); }
/** * This converter equals another converter of the same type if their labels * are equal. * * @param other * The other converter. * @return * True if the two objects are equal; otherwise, false. */ public boolean equals( final CogxelBooleanConverter other) { return other != null && ObjectUtil.equalsSafe(this.getLabel(), other.getLabel()); }
/** * Returns true if the two converters have equal internal converters. * * @param other InputOutputPairCogxelConverter. * @return True if the two converters have the same internal converters. */ protected boolean equals( AbstractCogxelPairConverter<?, ?, ?> other) { return other != null && ObjectUtil.equalsSafe(this.getFirstConverter(), other.getFirstConverter()) && ObjectUtil.equalsSafe(this.getSecondConverter(), other.getSecondConverter()); }
public boolean hasIndexedTerm( final IndexedTerm indexedTerm) { return indexedTerm != null && this.hasIndex(indexedTerm.getIndex()) && ObjectUtil.equalsSafe(indexedTerm.getTerm(), this.getTerm(indexedTerm.getIndex())); }
public boolean hasIndexedTerm( final IndexedTerm indexedTerm) { return indexedTerm != null && this.hasIndex(indexedTerm.getIndex()) && ObjectUtil.equalsSafe(indexedTerm.getTerm(), this.getTerm(indexedTerm.getIndex())); }
public boolean hasIndexedTerm( final IndexedTerm indexedTerm) { return indexedTerm != null && this.hasIndex(indexedTerm.getIndex()) && ObjectUtil.equalsSafe(indexedTerm.getTerm(), this.getTerm(indexedTerm.getIndex())); }