Package jsonvalues

Class JsOptics.JsArrayOptionals

  • Enclosing class:
    JsOptics

    public static class JsOptics.JsArrayOptionals
    extends java.lang.Object
    represents all the S defined for a Json array
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Option<JsArray,​JsArray> array​(int index)
      optional that focus on the json array located at an index in an array
      Option<JsArray,​JsArray> array​(JsPath path)
      optional that focus on the array located at a path in an array
      Option<JsArray,​java.lang.Boolean> bool​(int index)
      optional that focus on the boolean located at an index in an array
      Option<JsArray,​java.lang.Boolean> bool​(JsPath path)
      optional that focus on the boolean located at a path in an array
      Option<JsArray,​java.math.BigDecimal> decimalNum​(int index)
      optional that focus on the decimal number located at an index in an array
      Option<JsArray,​java.math.BigDecimal> decimalNum​(JsPath path)
      optional that focus on the decimal number located at a path in an array
      Option<JsArray,​java.lang.Double> doubleNum​(int index)
      optional that focus on the double number located at an index in an array
      Option<JsArray,​java.lang.Double> doubleNum​(JsPath path)
      optional that focus on the double number located at a path in an array
      Option<JsArray,​java.time.Instant> instant​(int index)
      optional that focus on the instant located at an index in an array
      Option<JsArray,​java.time.Instant> instant​(JsPath path)
      optional that focus on the instant located at a path in an array
      Option<JsArray,​java.math.BigInteger> integralNum​(int index)
      optional that focus on the integral number located at an index in an array
      Option<JsArray,​java.math.BigInteger> integralNum​(JsPath path)
      optional that focus on the integral number located at a path in an array
      Option<JsArray,​java.lang.Integer> intNum​(int index)
      optional that focus on the integer number located at an index in an array
      Option<JsArray,​java.lang.Integer> intNum​(JsPath path)
      optional that focus on the integer number located at a path in an array
      Option<JsArray,​java.lang.Long> longNum​(int index)
      optional that focus on the long number located at an index in an array
      Option<JsArray,​java.lang.Long> longNum​(JsPath path)
      optional that focus on the long number located at a path in an array
      Option<JsArray,​JsObj> obj​(int index)
      optional that focus on the json object located at an index in an array
      Option<JsArray,​JsObj> obj​(JsPath path)
      optional that focus on the object located at a path in an array
      Option<JsArray,​java.lang.String> str​(int index)
      optional that focus on the string located at an index in an array
      Option<JsArray,​java.lang.String> str​(JsPath path)
      optional that focus on the string 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

      • JsArrayOptionals

        public JsArrayOptionals()
    • Method Detail

      • str

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

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

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

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

        public Option<JsArray,​java.lang.Long> longNum​(JsPath path)
        optional 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:
        an optional
      • longNum

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

        public Option<JsArray,​java.lang.Integer> intNum​(JsPath path)
        optional 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:
        an optional
      • intNum

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

        public Option<JsArray,​java.lang.Double> doubleNum​(JsPath path)
        optional 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:
        an optional
      • doubleNum

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

        public Option<JsArray,​java.math.BigDecimal> decimalNum​(JsPath path)
        optional 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:
        an optional
      • decimalNum

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

        public Option<JsArray,​java.math.BigInteger> integralNum​(JsPath path)
        optional 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:
        an optional
      • integralNum

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

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

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

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

        public Option<JsArray,​JsArray> array​(int index)
        optional that focus on the json array located at an index in an array
        Parameters:
        index - the index
        Returns:
        an optional
      • instant

        public Option<JsArray,​java.time.Instant> instant​(JsPath path)
        optional that focus on the instant located at a path in an array
        Parameters:
        path - the path where the instant is located at
        Returns:
        an optional
      • instant

        public Option<JsArray,​java.time.Instant> instant​(int index)
        optional that focus on the instant located at an index in an array
        Parameters:
        index - the index where the instant is located at
        Returns:
        an optional