Package org.pkl.core.externalreader
Record Class ModuleReaderSpec
java.lang.Object
java.lang.Record
org.pkl.core.externalreader.ModuleReaderSpec
-
Constructor Summary
ConstructorsConstructorDescriptionModuleReaderSpec(String scheme, boolean hasHierarchicalUris, boolean isLocal, boolean isGlobbable) Creates an instance of aModuleReaderSpecrecord 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.booleanReturns the value of thehasHierarchicalUrisrecord component.booleanReturns the value of theisGlobbablerecord component.booleanisLocal()Returns the value of theisLocalrecord component.scheme()Returns the value of theschemerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModuleReaderSpec
public ModuleReaderSpec(String scheme, boolean hasHierarchicalUris, boolean isLocal, boolean isGlobbable) Creates an instance of aModuleReaderSpecrecord class.- Parameters:
scheme- the value for theschemerecord componenthasHierarchicalUris- the value for thehasHierarchicalUrisrecord componentisLocal- the value for theisLocalrecord componentisGlobbable- the value for theisGlobbablerecord 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 '=='. -
scheme
Returns the value of theschemerecord component.- Returns:
- the value of the
schemerecord component
-
hasHierarchicalUris
public boolean hasHierarchicalUris()Returns the value of thehasHierarchicalUrisrecord component.- Returns:
- the value of the
hasHierarchicalUrisrecord component
-
isLocal
public boolean isLocal()Returns the value of theisLocalrecord component.- Returns:
- the value of the
isLocalrecord component
-
isGlobbable
public boolean isGlobbable()Returns the value of theisGlobbablerecord component.- Returns:
- the value of the
isGlobbablerecord component
-