Пример #1
0
        public MutateInSpecBuilder Decrement(string path, long delta, bool createPath = default(bool), bool isXattr = default(bool))
        {
            // delta must be negative
            if (delta > 0)
            {
                delta = -delta;
            }

            Specs.Add(MutateInSpec.Decrement(path, delta, createPath, isXattr));
            return(this);
        }
Пример #2
0
 public MutateInSpecBuilder Insert <T>(string path, T value, bool createPath = default(bool), bool isXattr = default(bool))
 {
     Specs.Add(MutateInSpec.Insert(path, value, createPath, isXattr));
     return(this);
 }
Пример #3
0
 public MutateInSpecBuilder ArrayAddUnique <T>(string path, T value, bool createPath = default(bool), bool isXattr = default(bool))
 {
     Specs.Add(MutateInSpec.ArrayAddUnique(path, value, createPath, isXattr));
     return(this);
 }
Пример #4
0
 public MutateInSpecBuilder Increment(string path, long delta, bool createPath = default(bool), bool isXattr = default(bool))
 {
     Specs.Add(MutateInSpec.Increment(path, delta, createPath, isXattr));
     return(this);
 }
Пример #5
0
 public MutateInSpecBuilder ArrayInsert <T>(string path, T[] values, bool createParents = default(bool), bool isXattr = default(bool))
 {
     Specs.Add(MutateInSpec.ArrayInsert(path, values, createParents, isXattr));
     return(this);
 }
Пример #6
0
 public MutateInSpecBuilder ArrayAppend <T>(string path, T[] values, bool createPath = default(bool), bool isXattr = default(bool))
 {
     Specs.Add(MutateInSpec.ArrayAppend(path, values, createPath, isXattr));
     return(this);
 }
Пример #7
0
 public MutateInSpecBuilder Remove(string path, bool isXattr = default(bool))
 {
     Specs.Add(MutateInSpec.Remove(path, isXattr));
     return(this);
 }
Пример #8
0
 public MutateInSpecBuilder Replace <T>(string path, T value, bool isXattr = default(bool))
 {
     Specs.Add(MutateInSpec.Replace(path, value, isXattr));
     return(this);
 }
Пример #9
0
 public MutateInSpecBuilder ArrayPrepend <T>(string path, T[] values, bool createParents = default(bool), bool xAttr = default(bool))
 {
     Specs.Add(MutateInSpec.ArrayPrepend(path, values, createParents, xAttr));
     return(this);
 }