Package jsonvalues

Class JsOptics.JsArrayLenses

  • Enclosing class:
    JsOptics

    public static class JsOptics.JsArrayLenses
    extends java.lang.Object
    represents all the lenses defined for a Json array
    • Constructor Summary

      Constructors 
      Constructor Description
      JsArrayLenses()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Lens<JsArray,​JsArray> array​(int index)
      lens that focus on the json array located at an index in an array
      Lens<JsArray,​JsArray> array​(JsPath path)
      lens that focus on the json array located at a path in an array
      Lens<JsArray,​byte[]> binary​(int index)
      lens that focus on an array of bytes located at an index in an array
      Lens<JsArray,​byte[]> binary​(JsPath path)
      lens that focus on an array of bytes located at a path in an array
      Lens<JsArray,​java.lang.Boolean> bool​(int index)
      lens that focus on the boolean located at an index in an array
      Lens<JsArray,​java.lang.Boolean> bool​(JsPath path)
      lens that focus on the boolean located at a path in an array
      Lens<JsArray,​java.math.BigDecimal> decimalNum​(int index)
      lens that focus on the decimal number located at an index in an array
      Lens<JsArray,​java.math.BigDecimal> decimalNum​(JsPath path)
      lens that focus on the decimal number located at a path in an array
      Lens<JsArray,​java.lang.Double> doubleNum​(int index)
      lens that focus on the double number located at an index in an array
      Lens<JsArray,​java.lang.Double> doubleNum​(JsPath path)
      lens that focus on the double number located at a path in an array
      Lens<JsArray,​java.time.Instant> instant​(int index)
      lens that focus on the array of bytes at an index in an array
      Lens<JsArray,​java.time.Instant> instant​(JsPath path)
      lens that focus on the array of bytes located at a path in an array
      Lens<JsArray,​java.math.BigInteger> integralNum​(int index)
      lens that focus on the integral number located at an index in an array
      Lens<JsArray,​java.math.BigInteger> integralNum​(JsPath path)
      lens that focus on the integral number located at a path in an array
      Lens<JsArray,​java.lang.Integer> intNum​(int index)
      lens that focus on the integer number located at an index in an array
      Lens<JsArray,​java.lang.Integer> intNum​(JsPath path)
      lens that focus on the integer number located at a path in an array
      Lens<JsArray,​java.lang.Long> longNum​(int index)
      lens that focus on the long number located at an index in an array
      Lens<JsArray,​java.lang.Long> longNum​(JsPath path)
      lens that focus on the long number located at a path in an array
      Lens<JsArray,​JsObj> obj​(int index)
      lens that focus on the json object located at an index in an array
      Lens<JsArray,​JsObj> obj​(JsPath path)
      lens that focus on the json object located at a path in an array
      Lens<JsArray,​java.lang.String> str​(int index)
      lens that focus on the string located at an index in an array
      Lens<JsArray,​java.lang.String> str​(JsPath path)
      lens that focus on the string located at a path in an array
      Lens<JsArray,​JsValue> value​(int index)
      lens that focus on the value located at an index in an array
      Lens<JsArray,​JsValue> value​(JsPath path)
      lens that focus on the value located at a path in an array
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JsArrayLenses

        public JsArrayLenses()
    • Method Detail

      • value

        public Lens<JsArray,​JsValue> value​(JsPath path)
        lens that focus on the value located at a path in an array
        Parameters:
        path - the path where the value is located at
        Returns:
        a lens
      • value

        public Lens<JsArray,​JsValue> value​(int index)
        lens that focus on the value located at an index in an array
        Parameters:
        index - the index where the value is located at
        Returns:
        a lens
      • str

        public Lens<JsArray,​java.lang.String> str​(JsPath path)
        lens that focus on the string located at a path in an array
        Parameters:
        path - the path where the string is located at
        Returns:
        a lens
      • str

        public Lens<JsArray,​java.lang.String> str​(int index)
        lens that focus on the string located at an index in an array
        Parameters:
        index - the index where the string is located at
        Returns:
        a lens
      • bool

        public Lens<JsArray,​java.lang.Boolean> bool​(JsPath path)
        lens that focus on the boolean located at a path in an array
        Parameters:
        path - the path where the boolean is located at
        Returns:
        a lens
      • bool

        public Lens<JsArray,​java.lang.Boolean> bool​(int index)
        lens that focus on the boolean located at an index in an array
        Parameters:
        index - the index where the boolean is located at
        Returns:
        a lens
      • longNum

        public Lens<JsArray,​java.lang.Long> longNum​(JsPath path)
        lens that focus on the long number located at a path in an array
        Parameters:
        path - the path where the long number is located at
        Returns:
        a lens
      • longNum

        public Lens<JsArray,​java.lang.Long> longNum​(int index)
        lens that focus on the long number located at an index in an array
        Parameters:
        index - the index where the long number is located at
        Returns:
        a lens
      • intNum

        public Lens<JsArray,​java.lang.Integer> intNum​(JsPath path)
        lens that focus on the integer number located at a path in an array
        Parameters:
        path - the path where the integer number is located at
        Returns:
        a lens
      • intNum

        public Lens<JsArray,​java.lang.Integer> intNum​(int index)
        lens that focus on the integer number located at an index in an array
        Parameters:
        index - the index where the integer number is located at
        Returns:
        a lens
      • doubleNum

        public Lens<JsArray,​java.lang.Double> doubleNum​(JsPath path)
        lens that focus on the double number located at a path in an array
        Parameters:
        path - the path where the double number is located at
        Returns:
        a lens
      • doubleNum

        public Lens<JsArray,​java.lang.Double> doubleNum​(int index)
        lens that focus on the double number located at an index in an array
        Parameters:
        index - the index where the double number is located at
        Returns:
        a lens
      • decimalNum

        public Lens<JsArray,​java.math.BigDecimal> decimalNum​(JsPath path)
        lens that focus on the decimal number located at a path in an array
        Parameters:
        path - the path where the decimal number is located at
        Returns:
        a lens
      • decimalNum

        public Lens<JsArray,​java.math.BigDecimal> decimalNum​(int index)
        lens that focus on the decimal number located at an index in an array
        Parameters:
        index - the index where the decimal number is located at
        Returns:
        a lens
      • integralNum

        public Lens<JsArray,​java.math.BigInteger> integralNum​(JsPath path)
        lens that focus on the integral number located at a path in an array
        Parameters:
        path - the path where the integral number is located at
        Returns:
        a lens
      • integralNum

        public Lens<JsArray,​java.math.BigInteger> integralNum​(int index)
        lens that focus on the integral number located at an index in an array
        Parameters:
        index - the index where the integral number is located at
        Returns:
        a lens
      • obj

        public Lens<JsArray,​JsObj> obj​(JsPath path)
        lens that focus on the json object located at a path in an array
        Parameters:
        path - the path where the json object is located at
        Returns:
        a lens
      • obj

        public Lens<JsArray,​JsObj> obj​(int index)
        lens that focus on the json object located at an index in an array
        Parameters:
        index - the index where the json object is located at
        Returns:
        a lens
      • array

        public Lens<JsArray,​JsArray> array​(JsPath path)
        lens that focus on the json array located at a path in an array
        Parameters:
        path - the path where the json array is located at
        Returns:
        a lens
      • array

        public Lens<JsArray,​JsArray> array​(int index)
        lens that focus on the json array located at an index in an array
        Parameters:
        index - the index where the json array is located at
        Returns:
        a lens
      • binary

        public Lens<JsArray,​byte[]> binary​(JsPath path)
        lens that focus on an array of bytes located at a path in an array
        Parameters:
        path - the path where the bytes are located at
        Returns:
        a lens
      • binary

        public Lens<JsArray,​byte[]> binary​(int index)
        lens that focus on an array of bytes located at an index in an array
        Parameters:
        index - the index where the bytes are located at
        Returns:
        a lens
      • instant

        public Lens<JsArray,​java.time.Instant> instant​(JsPath path)
        lens that focus on the array of bytes located at a path in an array
        Parameters:
        path - the path where the bytes are located at
        Returns:
        a lens
      • instant

        public Lens<JsArray,​java.time.Instant> instant​(int index)
        lens that focus on the array of bytes at an index in an array
        Parameters:
        index - the index where the bytes are located at
        Returns:
        a lens