Interface WritableList<T>

All Superinterfaces:
GetValueModel<T>, Iterable<T>, ObservableList<T>, ObservableValue<T>, Property, SetValueModel<T>, WritableProperty, WritableValue<T>, WritableValueModel<T>
All Known Subinterfaces:
WritableListIndexSelection<T>, WritableListIndexSelectionExt<T>, WritableListSelection<T>
All Known Implementing Classes:
WritableListAdapter, WritableListBase, WritableListImpl, WritableListIndexSelectionImpl, WritableListSelectionImpl, WritableSetImpl

public interface WritableList<T> extends ObservableList<T>, WritableValue<T>
  • Method Details

    • set

      void set(T value)
      convenient method to replace all the values of the list with a singleton or null
      Specified by:
      set in interface SetValueModel<T>
      Specified by:
      set in interface WritableValue<T>
      Parameters:
      value - singleton or null
    • isEmpty

      boolean isEmpty()
    • clear

      void clear()
    • removeAll

      void removeAll(Predicate<T> a)
    • removeLast

      default void removeLast()
    • removeFirst

      default void removeFirst()
    • add

      boolean add(int index, T v)
    • add

      boolean add(T v)
    • setCollection

      boolean setCollection(Collection<? extends T> all)
    • setAll

      default boolean setAll(T... all)
    • addCollection

      boolean addCollection(Collection<? extends T> all)
    • addAll

      default boolean addAll(T... all)
    • removeCollection

      boolean removeCollection(Collection<? extends T> all)
    • removeAll

      default boolean removeAll(T... all)
    • set

      void set(int index, T v)
    • removeAt

      T removeAt(int index)
    • remove

      boolean remove(T item)
    • vetos

      PropertyVetos vetos()
      Specified by:
      vetos in interface WritableProperty