Package io.gdcc.spi.meta.descriptor
Record Class SourcedDescriptor
java.lang.Object
java.lang.Record
io.gdcc.spi.meta.descriptor.SourcedDescriptor
- Record Components:
sourceLocation- the path to the source location of the descriptor, must not be nullplugin- theDescriptorrepresenting the plugin information, must not be null
A record representing a descriptor that is sourced from a specific location.
Combines information about a descriptor and its source location.
-
Constructor Summary
ConstructorsConstructorDescriptionSourcedDescriptor(Path sourceLocation, Descriptor plugin) Creates an instance of aSourcedDescriptorrecord 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.booleanplugin()Returns the value of thepluginrecord component.Returns the value of thesourceLocationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SourcedDescriptor
Creates an instance of aSourcedDescriptorrecord class.- Parameters:
sourceLocation- the value for thesourceLocationrecord componentplugin- the value for thepluginrecord component
-
-
Method Details
-
isOfKind
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
sourceLocation
Returns the value of thesourceLocationrecord component.- Returns:
- the value of the
sourceLocationrecord component
-
plugin
Returns the value of thepluginrecord component.- Returns:
- the value of the
pluginrecord component
-