示例#1
0
        public override void Copy(MutableValue source)
        {
            MutableValueSingle s = (MutableValueSingle)source;

            Value  = s.Value;
            Exists = s.Exists;
        }
示例#2
0
        public override MutableValue Duplicate()
        {
            MutableValueSingle v = new MutableValueSingle();

            v.Value  = this.Value;
            v.Exists = this.Exists;
            return(v);
        }
示例#3
0
        public override int CompareSameType(object other)
        {
            MutableValueSingle b = (MutableValueSingle)other;
            int c = Value.CompareTo(b.Value);

            if (c != 0)
            {
                return(c);
            }
            if (Exists == b.Exists)
            {
                return(0);
            }
            return(Exists ? 1 : -1);
        }
示例#4
0
 public ValueFillerAnonymousInnerClassHelper(QueryDocValues outerInstance)
 {
     this.outerInstance = outerInstance;
     mval = new MutableValueSingle();
 }
示例#5
0
        public override bool EqualsSameType(object other)
        {
            MutableValueSingle b = (MutableValueSingle)other;

            return(Value == b.Value && Exists == b.Exists);
        }