public override bool Equals(object o) { if (this == o) { return(true); } if (o is RelationshipKey) { RelationshipKey that = ( RelationshipKey )o; return(_endLabelId == that._endLabelId && _startLabelId == that._startLabelId && _typeId == that._typeId); } return(false); }
public override int CompareTo(CountsKey other) { if (other is RelationshipKey) { RelationshipKey that = ( RelationshipKey )other; if (this._typeId != that._typeId) { return(Integer.compare(this._typeId, that._typeId)); } if (this._startLabelId != that._startLabelId) { return(Integer.compare(this._startLabelId, that._startLabelId)); } return(Integer.compare(this._endLabelId, that._endLabelId)); } return(RecordType().compareTo(other.RecordType())); }