public boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;SegToken other = (SegToken) obj;if (!Arrays.equals(charArray, other.charArray))return false;if (endOffset != other.endOffset)return false;if (index != other.index)return false;if (startOffset != other.startOffset)return false;if (weight != other.weight)return false;if (wordType != other.wordType)return false;return true;}
public override bool Equals(object obj){if (this == obj)return true;if (obj == null)return false;if (GetType() != obj.GetType())return false;SegToken other = (SegToken)obj;if (!Arrays.Equals(CharArray, other.CharArray))return false;if (EndOffset != other.EndOffset)return false;if (Index != other.Index)return false;if (StartOffset != other.StartOffset)return false;if (Weight != other.Weight)return false;if (WordType != other.WordType)return false;return true;}