Package 

Class Models


  • 
    public final class Models
    
                        

    The 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 class Models.Companion
    • Method Summary

      Modifier and Type Method Description
      final <T extends Model<?>> Models add(T model) Adds custom models to the builder.
      final <T extends Model<?>> T get(Class<T> clazz) Retrieves a model of the specified class.
      final <T extends Model<?>> T get() Retrieves a model of the specified class.
      final List<Model<?>> all() Retrieves all models in the collection.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
      • get

         final <T extends Model<?>> T get()

        Retrieves a model of the specified class.

      • all

         final List<Model<?>> all()

        Retrieves all models in the collection.