Package jsonvalues

Class JsOptics.JsObjOptional

  • Enclosing class:
    JsOptics

    public static class JsOptics.JsObjOptional
    extends Object
    represents all the S defined for a Json object
    • Constructor Detail

      • JsObjOptional

        public JsObjOptional()
    • Method Detail

      • str

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

        public Option<JsObj,​String> str​(String key)
        optional that focus on the string located at a key in an object
        Parameters:
        key - the key where the string is located at
        Returns:
        an optional
      • bool

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

        public Option<JsObj,​Boolean> bool​(String key)
        optional that focus on the boolean located at a key in an object
        Parameters:
        key - the key where the boolean is located at
        Returns:
        an optional
      • longNum

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

        public Option<JsObj,​Long> longNum​(String key)
        optional that focus on the long number located at a key in an object
        Parameters:
        key - the key where the long number is located at
        Returns:
        an optional
      • intNum

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

        public Option<JsObj,​Integer> intNum​(String key)
        optional that focus on the integer number located at a key in an object
        Parameters:
        key - the key where the integer number is located at
        Returns:
        an optional
      • doubleNum

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

        public Option<JsObj,​Double> doubleNum​(String key)
        optional that focus on the double number located at a key in an object
        Parameters:
        key - the key where the double number is located at
        Returns:
        an optional
      • decimalNum

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

        public Option<JsObj,​BigDecimal> decimalNum​(String key)
        optional that focus on the decimal number located at a key in an object
        Parameters:
        key - the key where the decimal number is located at
        Returns:
        an optional
      • integralNum

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

        public Option<JsObj,​BigInteger> integralNum​(String key)
        optional that focus on the bigint number located at a path in an object
        Parameters:
        key - the path where the bigint number is located at
        Returns:
        an optional
      • obj

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

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

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

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