public override bool Equals(VirtualValue other) { if (!(other is VirtualNodeValue)) { return(false); } VirtualNodeValue that = ( VirtualNodeValue )other; return(Id() == that.Id()); }
public override int CompareTo(VirtualValue other, IComparer <AnyValue> comparator) { if (!(other is VirtualNodeValue)) { throw new System.ArgumentException("Cannot compare different virtual values"); } VirtualNodeValue otherNode = ( VirtualNodeValue )other; return(Long.compare(Id(), otherNode.Id())); }
public abstract Base MapNode(@virtual.VirtualNodeValue value);
public virtual NodeValue OtherNode( VirtualNodeValue node ) { return node.Equals( StartNode() ) ? EndNode() : StartNode(); }