/*
             * Equals is only defined from the stored node, so we can use it to find
             * entries in the queue
             */
            public override bool Equals(object obj)
            {
                if (this == obj)
                {
                    return(true);
                }
                if (obj == null)
                {
                    return(false);
                }
                if (this.GetType() != obj.GetType())
                {
                    return(false);
                }
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final HeapObject other = (HeapObject) obj;
                HeapObject other = ( HeapObject )obj;

                if (NodeConflict == null)
                {
                    if (other.NodeConflict != null)
                    {
                        return(false);
                    }
                }
                else if (!NodeConflict.Equals(other.NodeConflict))
                {
                    return(false);
                }
                return(true);
            }
        public override Node ExtractMin()
        {
            HeapObject heapObject = Heap.extractMin();

            if (heapObject == null)
            {
                return(null);
            }
            return(heapObject.Node);
        }
示例#3
0
文件: Space.cs 项目: azist/azos
 public Task <SaveResult <ChangeResult> > SetObjectAsync(HeapObject instance, WriteFlags flags = WriteFlags.None, Guid idempotencyToken = default(Guid), INode node = null)
 {
     throw new NotImplementedException();
 }
示例#4
0
 public override void HeapObjectReachable(HeapObject o)
 {
 }