Interface UnboundEntityVariant

All Superinterfaces:
EntityVariant

public sealed interface UnboundEntityVariant extends EntityVariant
Represents an EntityVariant that is not yet associated with any EntityInjection.

Unbound variants are created using the static factory methods in EntityVariant, and later registered to an injection using the EntityInjection.Builder, e.g., EntityInjection.Builder.addVariant(UnboundEntityVariant).

For more details on creating and working with entity variants, see EntityVariant.

  • Method Details

    • bind

      @Internal BoundEntityVariant bind(EntityInjection<?,?> injection)
      Binds this variant to the specified injection and returns a new BoundEntityVariant.

      Note: This method is intended for internal use only and should not be called directly as a part of this API.

      Parameters:
      injection - the injection to bind this variant to
      Returns:
      the bound variant