Class ValidValueProvider

java.lang.Object
com.inet.pdfc.config.ValidValueProvider

public class ValidValueProvider extends Object
An abstraction of the valid values of an enum property. In addition to the profile value, this instance provides a translated display value if available.
Since:
5.0
  • Constructor Details

    • ValidValueProvider

      public ValidValueProvider(@Nonnull @Nonnull List<ValidValueProvider.ValidValue> values)
      Creates the provider for a list of well defined valid values
      Parameters:
      values - the list of valid values that will be returned by this provider
      Since:
      5.0
    • ValidValueProvider

      public ValidValueProvider(Object[] values)
      Creates a value provider for values without translation.
      Parameters:
      values - the list of valid values that will be returned by this provider
      Since:
      5.0
  • Method Details