Interface RecyclerFactoryProvider


public interface RecyclerFactoryProvider
Contract for providing RecyclerFactory instances.
Since:
3.0.0
  • Method Details

    • getInstance

      static RecyclerFactoryProvider getInstance()
    • getOrder

      default int getOrder()
      Denotes the value to be used while sorting recycler factory providers to determine the precedence order. Values will be sorted naturally, that is, lower values will imply higher precedence.
      Returns:
      the value to be used while sorting
    • getName

      String getName()
      The name of this recycler factory provider. Recycler factory providers are required to have unique names.
      Returns:
      the name of this recycler factory provider
    • createForEnvironment

      RecyclerFactory createForEnvironment(PropertyEnvironment environment)
      Creates a recycler factory for the provided environment.
      Parameters:
      environment - an environment
      Returns:
      a recycler factory instance for the given environment