Package io.gdcc.spi.core.loader
Record Class LoaderProblem.ProviderApiLevelMismatch
java.lang.Object
java.lang.Record
io.gdcc.spi.core.loader.LoaderProblem.ProviderApiLevelMismatch
- All Implemented Interfaces:
LoaderProblem
- Enclosing interface:
- LoaderProblem
public static record LoaderProblem.ProviderApiLevelMismatch(String classname, Path source, String provider, int coreLevel, int pluginLevel)
extends Record
implements LoaderProblem
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.gdcc.spi.core.loader.LoaderProblem
LoaderProblem.DuplicateIdentity, LoaderProblem.LocationFailure, LoaderProblem.MissingServiceProviderRecord, LoaderProblem.PluginClassApiLevelMismatch, LoaderProblem.PluginClassApiLevelMissing, LoaderProblem.PluginClassMismatch, LoaderProblem.PluginClassNameCollision, LoaderProblem.PluginClassNameCollisionWithCore, LoaderProblem.PluginClassUnsupported, LoaderProblem.ProviderApiLevelMismatch, LoaderProblem.ProviderClassUnsupported, LoaderProblem.SourceFailure -
Constructor Summary
ConstructorsConstructorDescriptionProviderApiLevelMismatch(String classname, Path source, String provider, int coreLevel, int pluginLevel) Creates an instance of aProviderApiLevelMismatchrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassnamerecord component.intReturns the value of thecoreLevelrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()intReturns the value of thepluginLevelrecord component.provider()Returns the value of theproviderrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProviderApiLevelMismatch
public ProviderApiLevelMismatch(String classname, Path source, String provider, int coreLevel, int pluginLevel) Creates an instance of aProviderApiLevelMismatchrecord class.- Parameters:
classname- the value for theclassnamerecord componentsource- the value for thesourcerecord componentprovider- the value for theproviderrecord componentcoreLevel- the value for thecoreLevelrecord componentpluginLevel- the value for thepluginLevelrecord component
-
-
Method Details
-
message
- Specified by:
messagein interfaceLoaderProblem
-
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 '=='. -
classname
Returns the value of theclassnamerecord component.- Returns:
- the value of the
classnamerecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-
coreLevel
public int coreLevel()Returns the value of thecoreLevelrecord component.- Returns:
- the value of the
coreLevelrecord component
-
pluginLevel
public int pluginLevel()Returns the value of thepluginLevelrecord component.- Returns:
- the value of the
pluginLevelrecord component
-