-
public final class ModelsThe Models class provides a way to manage and access models that collect and expose data. Custom models can be added to the collection as long as they do not conflict with base models. The following base models are always included and cannot be overridden:
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classModels.Companion
-
Method Summary
Modifier and Type Method Description final <T extends Model<?>> Modelsadd(T model)Adds custom models to the builder. final <T extends Model<?>> Tget(Class<T> clazz)Retrieves a model of the specified class. final <T extends Model<?>> Tget()Retrieves a model of the specified class. final List<Model<?>>all()Retrieves all models in the collection. -
-
Method Detail
-
add
final <T extends Model<?>> Models add(T model)
Adds custom models to the builder.
- Parameters:
model- The model to add.
-
get
final <T extends Model<?>> T get(Class<T> clazz)
Retrieves a model of the specified class.
- Parameters:
clazz- The class, which is type T, of the model to retrieve.
-
-
-
-