Class AbstractValueProvider

java.lang.Object
nl.jqno.equalsverifier.internal.valueproviders.AbstractValueProvider
All Implemented Interfaces:
ValueProvider

public class AbstractValueProvider extends Object implements ValueProvider
A ValueProvider that can instantiate abstract types, including (sealed) interfaces.
  • Field Details

  • Constructor Details

    • AbstractValueProvider

      public AbstractValueProvider(ValueProvider vp)
  • Method Details

    • provide

      public <T> Optional<Tuple<T>> provide(TypeTag tag, Attributes attributes)
      Description copied from interface: ValueProvider
      Returns a tuple of two different prefabricated values of the specified type.
      Specified by:
      provide in interface ValueProvider
      Type Parameters:
      T - The returned tuple will have this generic type.
      Parameters:
      tag - A description of the desired type, including generic parameters.
      attributes - The attributes of the field that the provided values must be linked to.
      Returns:
      A tuple of two different values of the given type, or an empty Optional if none could be found.