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 booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.href()Returns the value of thehrefrecord component.label()Returns the value of thelabelrecord component.Returns the value of theprovenancerecord component.Returns the value of thesiblingOrderrecord component.title()Returns the value of thetitlerecord component.final StringtoString()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 aRouterecord class.- Parameters:
href- the value for thehrefrecord componentlabel- the value for thelabelrecord componenttitle- the value for thetitlerecord componentsiblingOrder- the value for thesiblingOrderrecord componentprovenance- the value for theprovenancerecord 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 thehrefrecord component.- Returns:
- the value of the
hrefrecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
siblingOrder
Returns the value of thesiblingOrderrecord component.- Returns:
- the value of the
siblingOrderrecord component
-
provenance
Returns the value of theprovenancerecord component.- Returns:
- the value of the
provenancerecord component
-