Interface MetisDataItem.MetisDataList<T>
- Type Parameters:
T- the list element type
- All Superinterfaces:
MetisDataItem.MetisDataObjectFormat
- All Known Subinterfaces:
PrometheusTableItem.PrometheusTableList<T>
- All Known Implementing Classes:
MetisListIndexed,MetisListVersioned,MetisViewerErrorList,PrometheusControlData.PrometheusControlDataList,PrometheusControlKey.PrometheusControlKeyList,PrometheusControlKeySet.PrometheusControlKeySetList,PrometheusDataErrorList,PrometheusDataGroup,PrometheusDataInfoItem.PrometheusDataInfoList,PrometheusDataInfoLinkSet.PrometheusInfoSetValueList,PrometheusDataKeySet.PrometheusDataKeySetList,PrometheusDataList,PrometheusEditEntry,PrometheusEncryptedDataItem.PrometheusEncryptedList,PrometheusStaticDataItem.PrometheusStaticList
- Enclosing class:
MetisDataItem
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface MetisDataItem.MetisDataList<T>
extends MetisDataItem.MetisDataObjectFormat
List interface.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidAdd the item at index.default booleanAdd the item.default voidclear()Clear the list.Obtain underlying list.default booleanisEmpty()Is the list empty?.iterator()Obtain the list iterator.default ListIterator<T> listIterator(int pIndex) Obtain the list iterator.default booleanRemove the item.default intsize()Obtain the size of the list.Methods inherited from interface io.github.tonywasher.joceanus.metis.data.MetisDataItem.MetisDataObjectFormat
formatObject
-
Method Details
-
getUnderlyingList
Obtain underlying list.- Returns:
- the list
-
iterator
Obtain the list iterator.- Returns:
- the iterator
-
listIterator
Obtain the list iterator.- Parameters:
pIndex- the list position- Returns:
- the iterator
-
isEmpty
default boolean isEmpty()Is the list empty?.- Returns:
- true/false
-
size
default int size()Obtain the size of the list.- Returns:
- the size
-
clear
default void clear()Clear the list. -
add
Add the item.- Parameters:
pItem- the item- Returns:
- true/false - was item added?
-
add
Add the item at index.- Parameters:
pIndex- the indexpItem- the item
-
remove
Remove the item.- Parameters:
pItem- the item- Returns:
- true/false - was item in list?
-