Class BuiltinVersionSpecificValueProvider

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

public class BuiltinVersionSpecificValueProvider extends Object implements ValueProvider
A ValueProvider for Java API classes that are bundled in Java versions higher than EqualsVerifier's current baseline version.
  • Field Details

  • Constructor Details

    • BuiltinVersionSpecificValueProvider

      public BuiltinVersionSpecificValueProvider(ValueProvider vp)
  • Method Details

    • provide

      public <T> Optional<Tuple<T>> provide(TypeTag tag, Attributes attributes)
      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.