Ejemplo n.º 1
0
        public override void Copy(MutableValue source)
        {
            MutableValueInt32 s = (MutableValueInt32)source;

            Value  = s.Value;
            Exists = s.Exists;
        }
Ejemplo n.º 2
0
        public override MutableValue Duplicate()
        {
            MutableValueInt32 v = new MutableValueInt32();

            v.Value  = this.Value;
            v.Exists = this.Exists;
            return(v);
        }
Ejemplo n.º 3
0
 public Int32DocValuesAnonymousInnerClassHelper(Int32FieldSource outerInstance, Int32FieldSource @this, FieldCache.Int32s arr, IBits valid)
     : base(@this)
 {
     this.outerInstance = outerInstance;
     this.arr           = arr;
     this.valid         = valid;
     val = new MutableValueInt32();
 }
Ejemplo n.º 4
0
        public override int CompareSameType(object other)
        {
            MutableValueInt32 b = (MutableValueInt32)other;
            int ai = Value;
            int bi = b.Value;

            if (ai < bi)
            {
                return(-1);
            }
            else if (ai > bi)
            {
                return(1);
            }

            if (Exists == b.Exists)
            {
                return(0);
            }
            return(Exists ? 1 : -1);
        }
Ejemplo n.º 5
0
        public override bool EqualsSameType(object other)
        {
            MutableValueInt32 b = (MutableValueInt32)other;

            return(Value == b.Value && Exists == b.Exists);
        }
Ejemplo n.º 6
0
 public ValueFillerAnonymousInnerClassHelper(Int32DocValuesAnonymousInnerClassHelper outerInstance)
 {
     this.outerInstance = outerInstance;
     mval = new MutableValueInt32();
 }