Package jsonvalues
Class JsOptics.JsObjOptional
- java.lang.Object
-
- jsonvalues.JsOptics.JsObjOptional
-
- Enclosing class:
- JsOptics
public static class JsOptics.JsObjOptional extends java.lang.Object
represents all the S defined for a Json object
-
-
Constructor Summary
Constructors Constructor Description JsObjOptional()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Option<JsObj,JsArray>
array(java.lang.String key)
optional that focus on the array located at a key in an objectOption<JsObj,JsArray>
array(JsPath path)
optional that focus on the array located at a path in an objectOption<JsObj,byte[]>
binary(java.lang.String key)
optional that focus on the array of bytes located at a key in an objectOption<JsObj,byte[]>
binary(JsPath path)
optional that focus on the array of bytes located at a path in an objectOption<JsObj,java.lang.Boolean>
bool(java.lang.String key)
optional that focus on the boolean located at a key in an objectOption<JsObj,java.lang.Boolean>
bool(JsPath path)
optional that focus on the boolean located at a path in an objectOption<JsObj,java.math.BigDecimal>
decimalNum(java.lang.String key)
optional that focus on the decimal number located at a key in an objectOption<JsObj,java.math.BigDecimal>
decimalNum(JsPath path)
optional that focus on the decimal number located at a path in an objectOption<JsObj,java.lang.Double>
doubleNum(java.lang.String key)
optional that focus on the double number located at a key in an objectOption<JsObj,java.lang.Double>
doubleNum(JsPath path)
optional that focus on the double number located at a path in an objectOption<JsObj,java.time.Instant>
instant(java.lang.String key)
optional that focus on the instant located at a key in an objectOption<JsObj,java.time.Instant>
instant(JsPath path)
optional that focus on the instant located at a path in an objectOption<JsObj,java.math.BigInteger>
integralNum(java.lang.String key)
optional that focus on the bigint number located at a path in an objectOption<JsObj,java.math.BigInteger>
integralNum(JsPath path)
optional that focus on the integral number located at a path in an objectOption<JsObj,java.lang.Integer>
intNum(java.lang.String key)
optional that focus on the integer number located at a key in an objectOption<JsObj,java.lang.Integer>
intNum(JsPath path)
optional that focus on the integer number located at a path in an objectOption<JsObj,java.lang.Long>
longNum(java.lang.String key)
optional that focus on the long number located at a key in an objectOption<JsObj,java.lang.Long>
longNum(JsPath path)
optional that focus on the long number located at a path in an objectOption<JsObj,JsObj>
obj(java.lang.String key)
optional that focus on the object located at a key in an objectOption<JsObj,JsObj>
obj(JsPath path)
optional that focus on the object located at a path in an objectOption<JsObj,java.lang.String>
str(java.lang.String key)
optional that focus on the string located at a key in an objectOption<JsObj,java.lang.String>
str(JsPath path)
optional that focus on the string located at a path in an object
-
-
-
Method Detail
-
str
public Option<JsObj,java.lang.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,java.lang.String> str(java.lang.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,java.lang.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,java.lang.Boolean> bool(java.lang.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,java.lang.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,java.lang.Long> longNum(java.lang.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,java.lang.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,java.lang.Integer> intNum(java.lang.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,java.lang.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,java.lang.Double> doubleNum(java.lang.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,java.math.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,java.math.BigDecimal> decimalNum(java.lang.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,java.math.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,java.math.BigInteger> integralNum(java.lang.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(java.lang.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(java.lang.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 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 Option<JsObj,byte[]> binary(java.lang.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 Option<JsObj,java.time.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
-
-