RichReadAttributeValue
Provide extension method(s) to read from a Java AttributeValue
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Attempt to read the AttributeValue as a value of type A or DecoderError
Attempt to read the AttributeValue as a value of type A or DecoderError
Note: if the value of the AttributeValue is nullable, use asOpt
instead.
Attributes
- Returns
-
either a value of type A or DecoderError
Attempt to read the AttributeValue as an optional value of type A or DecoderError. This should be used when AttributeValue can be NULL.
Attempt to read the AttributeValue as an optional value of type A or DecoderError. This should be used when AttributeValue can be NULL.
Attributes
- Returns
-
either an optional value of type A or DecoderError
Attempt to treat the AttributeValue as of type M, retrieve value by a given key as an AttributeValue.
Attempt to treat the AttributeValue as of type M, retrieve value by a given key as an AttributeValue.
Value parameters
- key
-
the key whose associated value is to be returned
Attributes
- Returns
-
either a value as AttributeValue type or DecoderError
Attempt to treat the AttributeValue as of type M, retrieve AttributeValue that associated to a given key and attempt reading it to a value of type A.
Attempt to treat the AttributeValue as of type M, retrieve AttributeValue that associated to a given key and attempt reading it to a value of type A.
Note: if the returning AttributeValue is nullable, use getOpt
instead.
Value parameters
- key
-
the key whose associated value is to be returned
Attributes
- Returns
-
either a value of type A type or DecoderError
Attempt to treat the AttributeValue as of type M, retrieve AttributeValue that associated to a given key and attempt reading it to an optional value of type A. This should be used when the returning AttributeValue can be NULL.
Attempt to treat the AttributeValue as of type M, retrieve AttributeValue that associated to a given key and attempt reading it to an optional value of type A. This should be used when the returning AttributeValue can be NULL.
Value parameters
- key
-
the key whose associated value is to be returned
Attributes
- Returns
-
either a value of type A type or DecoderError