java.lang.Object
java.lang.Record
org.apache.jena.rfc3986.URNComponents
URN Components.
RFC 8141.
-
Constructor Summary
ConstructorsConstructorDescriptionURNComponents(String rComponent, String qComponent, String fComponent) Creates an instance of aURNComponentsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefComponentrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theqComponentrecord component.Returns the value of therComponentrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
URNComponents
Creates an instance of aURNComponentsrecord class.- Parameters:
rComponent- the value for therComponentrecord componentqComponent- the value for theqComponentrecord componentfComponent- the value for thefComponentrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
rComponent
Returns the value of therComponentrecord component.- Returns:
- the value of the
rComponentrecord component
-
qComponent
Returns the value of theqComponentrecord component.- Returns:
- the value of the
qComponentrecord component
-
fComponent
Returns the value of thefComponentrecord component.- Returns:
- the value of the
fComponentrecord component
-