public override bool Equals(VirtualValue other) { if (!(other is VirtualRelationshipValue)) { return(false); } VirtualRelationshipValue that = ( VirtualRelationshipValue )other; return(Id() == that.Id()); }
public override int CompareTo(VirtualValue other, IComparer <AnyValue> comparator) { if (!(other is VirtualRelationshipValue)) { throw new System.ArgumentException("Cannot compare different virtual values"); } VirtualRelationshipValue otherNode = ( VirtualRelationshipValue )other; return(Long.compare(Id(), otherNode.Id())); }