Package jsonvalues

Class JsOptics.JsObjLenses

java.lang.Object
jsonvalues.JsOptics.JsObjLenses
Enclosing class:
JsOptics

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

    • JsObjLenses

      public JsObjLenses()
  • Method Details

    • value

      public fun.optic.Lens<JsObj,JsValue> 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 fun.optic.Lens<JsObj,JsValue> 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 fun.optic.Lens<JsObj,String> 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 fun.optic.Lens<JsObj,String> 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 fun.optic.Lens<JsObj,Boolean> 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 fun.optic.Lens<JsObj,Boolean> 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 fun.optic.Lens<JsObj,Long> 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 fun.optic.Lens<JsObj,Long> 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 fun.optic.Lens<JsObj,Integer> intNum(JsPath path)
      lens that focus on an 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 fun.optic.Lens<JsObj,Integer> intNum(String key)
      lens that focus on an 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 fun.optic.Lens<JsObj,Double> 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 fun.optic.Lens<JsObj,Double> 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 fun.optic.Lens<JsObj,BigDecimal> 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 fun.optic.Lens<JsObj,BigDecimal> 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 fun.optic.Lens<JsObj,BigInteger> integralNum(JsPath path)
      lens that focus on an 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 fun.optic.Lens<JsObj,BigInteger> integralNum(String key)
      lens that focus on an 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 fun.optic.Lens<JsObj,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 fun.optic.Lens<JsObj,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 fun.optic.Lens<JsObj,JsArray> 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 fun.optic.Lens<JsObj,JsArray> 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
    • binary

      public fun.optic.Lens<JsObj,byte[]> binary(JsPath path)
      lens that focus on an array of bytes located at a path in an object.
      Parameters:
      path - the path where the array of bytes is located at
      Returns:
      an optional
    • binary

      public fun.optic.Lens<JsObj,byte[]> binary(String key)
      lens that focus on an array of bytes located at a key in an object.
      Parameters:
      key - the key where the array of bytes is located at
      Returns:
      an optional
    • instant

      public fun.optic.Lens<JsObj,Instant> instant(JsPath path)
      lens that focus on an instant located at a path in an object.
      Parameters:
      path - the path where the instant is located at
      Returns:
      an optional
    • instant

      public fun.optic.Lens<JsObj,Instant> instant(String key)
      lens that focus on an instant located at a key in an object.
      Parameters:
      key - the key where the instant is located at
      Returns:
      an optional