Constructor and Description |
---|
RecyclerFactory() |
Modifier and Type | Method and Description |
---|---|
static <T> Recycler<T> |
createRecycler(Function<Recycler.Handle<T>,T> newObjectCreator)
Creates a new
Recycler . |
public static <T> Recycler<T> createRecycler(Function<Recycler.Handle<T>,T> newObjectCreator)
Recycler
.T
- the type being recycled.newObjectCreator
- the Function
to create a new objectRecycler
NullPointerException
- if newObjectCreator
is null