the regular cursor pointed to by this object, wrapped itself into a Right
, or a Left
with a list of
failures in case an error occurred during navigation
Casts this cursor to a boolean.
Casts this cursor to a boolean.
a Right
with the boolean value pointed to by this cursor if the cast can be done, Left
with a list of
failures otherwise.
Casts this cursor to a double.
Casts this cursor to a double.
a Right
with the double value pointed to by this cursor if the cast can be done, Left
with a list of
failures otherwise.
Casts this cursor to a float.
Casts this cursor to a float.
a Right
with the float value pointed to by this cursor if the cast can be done, Left
with a list of
failures otherwise.
Casts this cursor to an int.
Casts this cursor to an int.
a Right
with the int value pointed to by this cursor if the cast can be done, Left
with a list of
failures otherwise.
Casts this cursor to a ConfigListCursor
.
Casts this cursor to a ConfigListCursor
.
a Right
with this cursor as a list cursor if the cast can be done, Left
with a list of failures
otherwise.
Casts this cursor to a long.
Casts this cursor to a long.
a Right
with the long value pointed to by this cursor if the cast can be done, Left
with a list of
failures otherwise.
Casts this cursor to a ConfigObjectCursor
.
Casts this cursor to a ConfigObjectCursor
.
a Right
with this cursor as an object cursor if it points to an object, Left
with a list of failures
otherwise.
Casts this cursor to a short.
Casts this cursor to a short.
a Right
with the short value pointed to by this cursor if the cast can be done, Left
with a list of
failures otherwise.
Casts this cursor to a string.
Casts this cursor to a string.
a Right
with the string value pointed to by this cursor if the cast can be done, Left
with a list of
failures otherwise.
Returns a cursor to the config at a given path.
Returns a cursor to the config at a given path.
the path of the config for which a cursor should be returned
a FluentConfigCursor
pointing to the provided path.
the regular cursor pointed to by this object, wrapped itself into a Right
, or a Left
with a list of
failures in case an error occurred during navigation
Casts this cursor to a ConfigListCursor
and maps each element to a result.
Casts this cursor to a ConfigListCursor
and maps each element to a result. This method tries to map all
elements, combining failures from all of them if more than one exists.
the result type of the elements
the function used to map elements
a Right
with the list obtained by mapping all elements of the list pointed to by this cursor if all
casts and mappings can be done, Left
with a list of failures otherwise.
Casts this cursor to a ConfigObjectCursor
and maps each value to a result.
Casts this cursor to a ConfigObjectCursor
and maps each value to a result. This method tries to map all
elements, combining failures from all of them if more than one exists.
the result type of the values
the function used to map values
a Right
with the map obtained by mapping all values of the object pointed to by this cursor if all
casts and mappings can be done, Left
with a list of failures otherwise.
A version of
ConfigCursor
with a more fluent interface, focused on config navigation instead of error handling.The
at
method, used to access object and list values, is available without a previous need to cast the cursor and always returns another cursor instead of aConfigReader.Result
. The error handling is left for the last step, where users can opt to cast to a primitive value using one of theas
methods or by requesting a regular cursor withcursor
.the regular cursor pointed to by this object, wrapped itself into a
Right
, or aLeft
with a list of failures in case an error occurred during navigation