Class TableList<State extends TableState>
java.lang.Object
com.illumon.iris.web.shared.state.TableList<State>
- All Implemented Interfaces:
MappedIterable<State>,Iterable<State>
A linked list of
TableHandle and TableState tuples,
addressed from a root Table which has a String name from a persistent query.
In cases where there is no originating String name,
the first root table int clientId will be toString()d as the name.
This type is purposely not serializable, as the client
and server are each intended to keep their own copy of TableList,
to represent their current interpretation of "what the client is viewing".
In the future, we may want to give copy() an optional name parameter,
so we can have nice debug names for things.-
Field Summary
Fields inherited from interface com.illumon.iris.web.shared.fu.MappedIterable
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleancontainsHandle(TableHandle handle) getHead()getNodes()getTail()handles()booleanhasHandle(TableHandle handle) booleanisEmpty()booleaniterator()voidvoidremoveAll(JsConsumer<State> peek) reversed()states()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface com.illumon.iris.web.shared.fu.MappedIterable
allMatch, anyMatch, filter, filterNonNull, first, mapped, noneMatch, plus, reverse
-
Constructor Details
-
TableList
-
-
Method Details
-
getTailHandle
-
getTail
-
getHead
-
getHeadNode
-
getTailNode
-
getHeadHandle
-
iterator
- Specified by:
iteratorin interfaceIterable<State extends TableState>
-
reversed
-
getNodes
-
getNodesReverse
-
handles
-
states
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceMappedIterable<State extends TableState>- Returns:
- true when all elements in this list, including the head, have been removed.
-
isHeadOnly
public boolean isHeadOnly()- Returns:
- true when this table list has only a single head element
-
remove
-
addState
-
toString
-