Package jsonvalues

Class JsOptics.JsObjOptional

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

public static class JsOptics.JsObjOptional extends Object
Contains all the optionals defined for a Json object
  • Constructor Details

    • JsObjOptional

      public JsObjOptional()
  • Method Details

    • str

      public fun.optic.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 fun.optic.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 fun.optic.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 fun.optic.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 fun.optic.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 fun.optic.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 fun.optic.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 fun.optic.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 fun.optic.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 fun.optic.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 fun.optic.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 fun.optic.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 fun.optic.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 fun.optic.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 fun.optic.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 fun.optic.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 fun.optic.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 fun.optic.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
    • binary

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

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

      public fun.optic.Option<JsObj,Instant> instant(JsPath path)
      optional that focus on the 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.Option<JsObj,Instant> instant(String key)
      optional that focus on the instant located at a key in an object
      Parameters:
      key - the path where the instant is located at
      Returns:
      an optional