Interface WritableContainerValue<C,E>

Type Parameters:
C - type of the container value.
E - type of the contained elements (collection element or map value).
All Superinterfaces:
ReadableContainerValue<C,E>, ReadableObjectValue<C>, ReadableTypedObjectValue<C>, ReadableTypedValue<C>, ReadableValue<C>, Supplier<C>, WritableObjectValue<C>, WritableValue<C>
All Known Subinterfaces:
WritableCollectionValue<C,E>, WritableListValue<E>, WritableMapValue<K,V>, WritableSetValue<E>

public interface WritableContainerValue<C,E> extends ReadableContainerValue<C,E>, WritableObjectValue<C>
WritableObjectValue for container values (e.g. Collection or Map).
Since:
1.0.0
  • Method Details

    • getOrCreate

      C getOrCreate()
      Returns:
      the current null-safe value. Unlike ReadableValue.getSafe() this method will modify and initialize the value with an empty mutable container if it was null.