Package org.bsc.langgraph4j.state
Interface AppendableValue<T>
- Type Parameters:
T
- the type of the value
- All Known Implementing Classes:
AppendableValueRW
Deprecated, for removal: This API element is subject to removal in a future version.
Represents a value that can be appended to and provides various utility methods.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isEmpty()
Deprecated, for removal: This API element is subject to removal in a future version.Checks if the value list is empty.last()
Deprecated, for removal: This API element is subject to removal in a future version.Returns the last value in the list, if present.lastMinus
(int n) Deprecated, for removal: This API element is subject to removal in a future version.Returns the value at the specified position from the end of the list, if present.int
size()
Deprecated, for removal: This API element is subject to removal in a future version.Returns the size of the value list.values()
Deprecated, for removal: This API element is subject to removal in a future version.Returns the list of values.
-
Method Details
-
values
Deprecated, for removal: This API element is subject to removal in a future version.Returns the list of values.- Returns:
- a list of values
-
isEmpty
boolean isEmpty()Deprecated, for removal: This API element is subject to removal in a future version.Checks if the value list is empty.- Returns:
- true if the value list is empty, false otherwise
-
size
int size()Deprecated, for removal: This API element is subject to removal in a future version.Returns the size of the value list.- Returns:
- the size of the value list
-
last
Deprecated, for removal: This API element is subject to removal in a future version.Returns the last value in the list, if present.- Returns:
- an Optional containing the last value if present, otherwise an empty Optional
-
lastMinus
Deprecated, for removal: This API element is subject to removal in a future version.Returns the value at the specified position from the end of the list, if present.- Parameters:
n
- the position from the end of the list- Returns:
- an Optional containing the value at the specified position if present, otherwise an empty Optional
-