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

            Value  = s.Value;
            Exists = s.Exists;
        }
Exemplo n.º 2
0
 public IntDocValuesAnonymousInnerClassHelper(EnumFieldSource outerInstance, EnumFieldSource @this, FieldCache.Ints arr, Bits valid) : base(@this)
 {
     this.outerInstance = outerInstance;
     this.arr           = arr;
     this.valid         = valid;
     val = new MutableValueInt();
 }
Exemplo n.º 3
0
 public override MutableValue Duplicate()
 {
     MutableValueInt v = new MutableValueInt();
     v.Value = this.Value;
     v.Exists = this.Exists;
     return v;
 }
Exemplo n.º 4
0
        public override MutableValue Duplicate()
        {
            MutableValueInt v = new MutableValueInt();

            v.Value  = this.Value;
            v.Exists = this.Exists;
            return(v);
        }
Exemplo n.º 5
0
        public override int CompareSameType(object other)
        {
            MutableValueInt b  = (MutableValueInt)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);
        }
Exemplo n.º 6
0
 public ValueFillerAnonymousInnerClassHelper(IntDocValuesAnonymousInnerClassHelper outerInstance)
 {
     this.outerInstance = outerInstance;
     mval = new MutableValueInt();
 }
Exemplo n.º 7
0
        public override bool EqualsSameType(object other)
        {
            MutableValueInt b = (MutableValueInt)other;

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