Interface LabelFactory<T extends Label>

All Superinterfaces:
Factory<T,Object>
All Known Subinterfaces:
OptionFactory

public interface LabelFactory<T extends Label> extends Factory<T,Object>
A factory producing Label containers for given objects.
Since:
4.0.30
  • Method Summary

    Modifier and Type
    Method
    Description
    create(Object object)
    Create a new label container for the given object, which usually is the value.
  • Method Details

    • create

      @Nullable T create(Object object) throws de.espirit.common.util.FactoryException
      Create a new label container for the given object, which usually is the value.
      Specified by:
      create in interface Factory<T extends Label,Object>
      Parameters:
      object - The object to create a label for.
      Returns:
      The label built or null, if object is null.
      Throws:
      de.espirit.common.util.FactoryException - If the object could not be used as label source.
      Since:
      5.2.210803