Package jsonvalues

Class JsOptics.JsObjLenses

  • Enclosing class:
    JsOptics

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

      • JsObjLenses

        public JsObjLenses()
    • Method Detail

      • value

        public JsValueLens<JsObj> value​(JsPath path)
        lens that focus on a value located at a path in an object.
        Parameters:
        path - the path where the value is located at
        Returns:
        an optional
      • value

        public JsValueLens<JsObj> value​(String key)
        lens that focus on a value located at a key in an object.
        Parameters:
        key - the key where the value is located at
        Returns:
        an optional
      • str

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

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

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

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

        public JsLongLens<JsObj> longNum​(JsPath path)
        lens that focus on a 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 JsLongLens<JsObj> longNum​(String key)
        lens that focus on a 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 JsIntLens<JsObj> intNum​(JsPath path)
        lens that focus on a 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 JsIntLens<JsObj> intNum​(String key)
        lens that focus on a 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 JsDoubleLens<JsObj> doubleNum​(JsPath path)
        lens that focus on a 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 JsDoubleLens<JsObj> doubleNum​(String key)
        lens that focus on a 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 JsDecimalLens<JsObj> decimalNum​(JsPath path)
        lens that focus on a 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 JsDecimalLens<JsObj> decimalNum​(String key)
        lens that focus on a 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 JsBigIntLens<JsObj> integralNum​(JsPath path)
        lens that focus on a 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 JsBigIntLens<JsObj> integralNum​(String key)
        lens that focus on a integral number located at a key in an object.
        Parameters:
        key - the key where the integral number is located at
        Returns:
        an optional
      • obj

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

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

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

        public JsArrayLens<JsObj> array​(String key)
        lens that focus on a json array located at a key in an object.
        Parameters:
        key - the key where the json array is located at
        Returns:
        an optional