@Override public boolean equals(Object obj) { if (obj == this) return true; if (obj instanceof PackedTokenAttributeImpl) { final PackedTokenAttributeImpl other = (PackedTokenAttributeImpl) obj; return (startOffset == other.startOffset && endOffset == other.endOffset && positionIncrement == other.positionIncrement && positionLength == other.positionLength && (type == null ? other.type == null : type.equals(other.type)) && termFrequency == other.termFrequency && super.equals(obj) ); } else return false; }
@Override public boolean equals(Object obj) { if (obj == this) return true; if (obj instanceof PackedTokenAttributeImpl) { final PackedTokenAttributeImpl other = (PackedTokenAttributeImpl) obj; return (startOffset == other.startOffset && endOffset == other.endOffset && positionIncrement == other.positionIncrement && positionLength == other.positionLength && (type == null ? other.type == null : type.equals(other.type)) && super.equals(obj) ); } else return false; }
@Override public boolean equals(Object obj) { if (obj == this) return true; if (obj instanceof PackedTokenAttributeImpl) { final PackedTokenAttributeImpl other = (PackedTokenAttributeImpl) obj; return (startOffset == other.startOffset && endOffset == other.endOffset && positionIncrement == other.positionIncrement && positionLength == other.positionLength && (type == null ? other.type == null : type.equals(other.type)) && termFrequency == other.termFrequency && super.equals(obj) ); } else return false; }
@Override public boolean equals(Object obj) { if (obj == this) return true; if (obj instanceof Token) { final Token other = (Token) obj; return (startOffset == other.startOffset && endOffset == other.endOffset && flags == other.flags && positionIncrement == other.positionIncrement && (type == null ? other.type == null : type.equals(other.type)) && (payload == null ? other.payload == null : payload.equals(other.payload)) && super.equals(obj) ); } else return false; }