Package opennlp.tools.util.ext
Record Class Providers.Lookup<P>
java.lang.Object
java.lang.Record
opennlp.tools.util.ext.Providers.Lookup<P>
- Type Parameters:
P- The SPI.- Record Components:
registrations- The usable registrations in lookup order.skipped- The number of registrations left out as broken, disabled by class name, not allowed or not trusted.
private static record Providers.Lookup<P>(List<Providers.Registration<P>> registrations, int skipped)
extends Record
The providers one
ServiceLoader pass of the constructor found, and how many it left
out. The count is reported by an UnsatisfiedProviderException, since the reasons are
only logged.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<Providers.Registration<P>> The field for theregistrationsrecord component.private final intThe field for theskippedrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateLookup(List<Providers.Registration<P>> registrations, int skipped) Creates an instance of aLookuprecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theregistrationsrecord component.intskipped()Returns the value of theskippedrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
registrations
The field for theregistrationsrecord component. -
skipped
private final int skippedThe field for theskippedrecord component.
-
-
Constructor Details
-
Lookup
Creates an instance of aLookuprecord class.- Parameters:
registrations- the value for theregistrationsrecord componentskipped- the value for theskippedrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
registrations
Returns the value of theregistrationsrecord component.- Returns:
- the value of the
registrationsrecord component
-
skipped
public int skipped()Returns the value of theskippedrecord component.- Returns:
- the value of the
skippedrecord component
-