Interface AppendableValue<T>

Type Parameters:
T - the type of the value
All Known Implementing Classes:
AppendableValueRW

@Deprecated(forRemoval=true) public interface AppendableValue<T>
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 Type
    Method
    Description
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Checks if the value list is empty.
    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
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the size of the value list.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the list of values.
  • Method Details

    • values

      List<T> 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

      Optional<T> 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

      Optional<T> 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.
      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