T
- the type of elementpublic abstract class StateListView<N,T> extends ListView<T> implements StateDataView<N>
StateListView
is a ListView
which implemented using state backend.Modifier and Type | Class and Description |
---|---|
static class |
StateListView.KeyedStateListView<N,T>
StateListView.KeyedStateListView is an default implementation of StateListView whose
underlying is a keyed state. |
static class |
StateListView.NamespacedStateListView<N,T>
StateListView.NamespacedStateListView is an StateListView whose underlying is a keyed and
namespaced state. |
elementType, list
Constructor and Description |
---|
StateListView() |
Modifier and Type | Method and Description |
---|---|
void |
add(T value)
Adds the given value to the list.
|
void |
addAll(List<T> list)
Adds all of the elements of the specified list to this list view.
|
void |
clear()
Removes all of the elements from this list view.
|
Iterable<T> |
get()
Returns an iterable of the list view.
|
protected abstract ListState<T> |
getListState() |
boolean |
remove(T value)
Removes the given value from the list.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
setCurrentNamespace
public Iterable<T> get() throws Exception
ListView
public void add(T value) throws Exception
ListView
public void addAll(List<T> list) throws Exception
ListView
public boolean remove(T value) throws Exception
ListView
public void clear()
ListView
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.