public abstract class AbstractListHolder<T extends Named> extends Object implements ListHolder<T>
| Constructor and Description |
|---|
AbstractListHolder() |
| Modifier and Type | Method and Description |
|---|---|
SimpleListHolder<T> |
except(String... namesToExclude)
Fork this list with extra predicates.
|
List<List<T>> |
getAsTwoLists() |
T |
getFirst() |
List<T> |
getList()
Returns the list that this ListHolder backs.
|
int |
getSize()
The size of the List held by this ListHolder.
|
List<T> |
getSubList(int maxSubListSize)
Returns at most the first maxSubListSize elements of this list.
|
int |
getSubListSize(int maxSubListSize)
Return the size of the list returned by getSubList(maxSubListSize)
|
boolean |
isEmpty()
Is the List held by this ListHolder empty?
|
boolean |
isNotEmpty()
Is the List held by this ListHolder not empty?
|
public List<T> getList()
getList in interface ListHolder<T extends Named>public T getFirst()
public boolean isEmpty()
ListHolderisEmpty in interface ListHolder<T extends Named>public boolean isNotEmpty()
ListHolderisNotEmpty in interface ListHolder<T extends Named>public int getSize()
ListHoldergetSize in interface ListHolder<T extends Named>public int getSubListSize(int maxSubListSize)
public List<T> getSubList(int maxSubListSize)
public SimpleListHolder<T> except(String... namesToExclude)
namesToExclude - the name of the elements to exclude from the list.Copyright © 2005-2013 JAXIO S.A.R.L. - All Rights Reserved.