public class HomogeneousSection<TModel,TViewCell extends GenericViewCell<?,TModel>> extends AbstractSection
| Constructor and Description |
|---|
HomogeneousSection(GenericViewCellFactory<TModel,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<TViewCell> |
getAllViewCells() |
int |
getItemCount() |
boolean |
isFilteringEnabled() |
boolean |
isSortingEnabled() |
void |
prependAll(java.util.Collection<? extends TModel> models) |
void |
remove(int position) |
void |
setAll(java.util.Collection<? extends TModel> models) |
HomogeneousSection<TModel,TViewCell> |
setFilterFunction(Func<? super TModel,? extends java.lang.Boolean> filterFunction) |
HomogeneousSection<TModel,TViewCell> |
setModelComparator(java.util.Comparator<? super TModel> modelComparator) |
boolean |
shouldDisplayViewCell(TViewCell viewCell) |
isEmptypublic HomogeneousSection(GenericViewCellFactory<TModel,TViewCell> viewCellFactory)
public java.util.List<TViewCell> getAllViewCells()
public java.util.List<TModel> getAllModels()
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(Func<? 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