Package jsonvalues
Class JsOptics.JsObjLenses
- java.lang.Object
-
- jsonvalues.JsOptics.JsObjLenses
-
-
Constructor Summary
Constructors Constructor Description JsObjLenses()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jsonvalues.JsArrayLens<JsObj>
array(String key)
lens that focus on a json array located at a key in an object.jsonvalues.JsArrayLens<JsObj>
array(JsPath path)
lens that focus on a json object located at a path in an object.jsonvalues.JsBoolLens<JsObj>
bool(String key)
lens that focus on a boolean located at a path in an object.jsonvalues.JsBoolLens<JsObj>
bool(JsPath path)
lens that focus on a boolean located at a path in an object.jsonvalues.JsDecimalLens<JsObj>
decimalNum(String key)
lens that focus on a decimal number located at a key in an object.jsonvalues.JsDecimalLens<JsObj>
decimalNum(JsPath path)
lens that focus on a decimal number located at a path in an object.jsonvalues.JsDoubleLens<JsObj>
doubleNum(String key)
lens that focus on a double number located at a key in an object.jsonvalues.JsDoubleLens<JsObj>
doubleNum(JsPath path)
lens that focus on a double number located at a path in an object.jsonvalues.JsBigIntLens<JsObj>
integralNum(String key)
lens that focus on a integral number located at a key in an object.jsonvalues.JsBigIntLens<JsObj>
integralNum(JsPath path)
lens that focus on a integral number located at a path in an object.jsonvalues.JsIntLens<JsObj>
intNum(String key)
lens that focus on a integer number located at a key in an object.jsonvalues.JsIntLens<JsObj>
intNum(JsPath path)
lens that focus on a integer number located at a path in an object.jsonvalues.JsLongLens<JsObj>
longNum(String key)
lens that focus on a long number located at a key in an object.jsonvalues.JsLongLens<JsObj>
longNum(JsPath path)
lens that focus on a long number located at a path in an object.JsObjLens<JsObj>
obj(String key)
lens that focus on a json object located at a key in an object.JsObjLens<JsObj>
obj(JsPath path)
lens that focus on a json object located at a path in an object.jsonvalues.JsStrLens<JsObj>
str(String key)
lens that focus on a string located at a key in an object.jsonvalues.JsStrLens<JsObj>
str(JsPath path)
lens that focus on a string located at a path in an object.jsonvalues.JsValueLens<JsObj>
value(String key)
lens that focus on a value located at a key in an object.jsonvalues.JsValueLens<JsObj>
value(JsPath path)
lens that focus on a value located at a path in an object.
-
-
-
Method Detail
-
value
public jsonvalues.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 jsonvalues.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 jsonvalues.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 jsonvalues.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 jsonvalues.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 jsonvalues.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 jsonvalues.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 jsonvalues.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 jsonvalues.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 jsonvalues.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 jsonvalues.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 jsonvalues.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 jsonvalues.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 jsonvalues.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 jsonvalues.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 jsonvalues.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 jsonvalues.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
-
-