public class HomogeneousSection<TModel,TViewCell extends GenericViewCell<?,TModel>> extends AbstractSection
| Modifier and Type | Class and Description |
|---|---|
static class |
HomogeneousSection.ReflectionBasedViewCellFactory<TModel,TViewCell> |
AbstractSection.AbstractSectionIterator| Constructor and Description |
|---|
HomogeneousSection(java.lang.Class<? extends TModel> modelClass,
java.lang.Class<? extends TViewCell> viewCellClass) |
HomogeneousSection(Function<? super TModel,? extends TViewCell> viewCellFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(TModel model) |
void |
addAll(java.util.Collection<? extends TModel> models) |
void |
clear() |
AbstractViewCell |
get(int position) |
java.util.List<TModel> |
getAllModels() |
java.util.List<TModel> |
getAllSelectedModels() |
java.util.List<TViewCell> |
getAllViewCells() |
int |
getItemCount() |
boolean |
isFilteringEnabled() |
boolean |
isSortingEnabled() |
java.lang.Iterable<TModel> |
modelIterator() |
void |
prependAll(java.util.Collection<? extends TModel> models) |
void |
remove(int position) |
void |
setAll(java.util.Collection<? extends TModel> models) |
HomogeneousSection<TModel,TViewCell> |
setFilterFunction(Function<? super TModel,? extends java.lang.Boolean> filterFunction) |
HomogeneousSection<TModel,TViewCell> |
setModelComparator(java.util.Comparator<? super TModel> modelComparator) |
boolean |
shouldDisplayViewCell(TViewCell viewCell) |
isEmpty, viewCellIteratorpublic HomogeneousSection(java.lang.Class<? extends TModel> modelClass, java.lang.Class<? extends TViewCell> viewCellClass)
public java.util.List<TViewCell> getAllViewCells()
public java.util.List<TModel> getAllModels()
public java.util.List<TModel> getAllSelectedModels()
public java.lang.Iterable<TModel> modelIterator()
public void add(TModel model)
public void addAll(java.util.Collection<? extends TModel> models)
public void setAll(java.util.Collection<? extends TModel> models)
public void prependAll(java.util.Collection<? extends TModel> models)
public void clear()
public HomogeneousSection<TModel,TViewCell> setModelComparator(java.util.Comparator<? super TModel> modelComparator)
public boolean isSortingEnabled()
public HomogeneousSection<TModel,TViewCell> setFilterFunction(Function<? super TModel,? extends java.lang.Boolean> filterFunction)
public boolean isFilteringEnabled()
public boolean shouldDisplayViewCell(TViewCell viewCell)
public AbstractViewCell get(int position)
get in class AbstractSectionpublic void remove(int position)
remove in class AbstractSectionpublic int getItemCount()
getItemCount in class AbstractSection