Record Class RoutesTree.Route
java.lang.Object
java.lang.Record
org.diabetestechnology.drh.service.http.hub.prime.route.RoutesTree.Route
- Enclosing class:
RoutesTree
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.href()
Returns the value of thehref
record component.label()
Returns the value of thelabel
record component.Returns the value of theprovenance
record component.Returns the value of thesiblingOrder
record component.title()
Returns the value of thetitle
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Route
-
Route
-
Route
public Route(String href, String label, Optional<String> title, Optional<Integer> siblingOrder, Optional<Object> provenance) Creates an instance of aRoute
record class.- Parameters:
href
- the value for thehref
record componentlabel
- the value for thelabel
record componenttitle
- the value for thetitle
record componentsiblingOrder
- the value for thesiblingOrder
record componentprovenance
- the value for theprovenance
record 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)
. -
href
Returns the value of thehref
record component.- Returns:
- the value of the
href
record component
-
label
Returns the value of thelabel
record component.- Returns:
- the value of the
label
record component
-
title
Returns the value of thetitle
record component.- Returns:
- the value of the
title
record component
-
siblingOrder
Returns the value of thesiblingOrder
record component.- Returns:
- the value of the
siblingOrder
record component
-
provenance
Returns the value of theprovenance
record component.- Returns:
- the value of the
provenance
record component
-