Beispiel #1
0
        public override bool Equals(VirtualValue other)
        {
            if (!(other is VirtualNodeValue))
            {
                return(false);
            }
            VirtualNodeValue that = ( VirtualNodeValue )other;

            return(Id() == that.Id());
        }
Beispiel #2
0
        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()));
        }
Beispiel #3
0
 public abstract Base MapNode(@virtual.VirtualNodeValue value);
Beispiel #4
0
		 public virtual NodeValue OtherNode( VirtualNodeValue node )
		 {
			  return node.Equals( StartNode() ) ? EndNode() : StartNode();
		 }