Record Class Route
java.lang.Object
java.lang.Record
megalodonte.base.route.Route
-
Constructor Summary
ConstructorsConstructorDescriptionRoute(String identification, ScreenFactory factory, RouteProps props) Creates an instance of aRouterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.factory()Returns the value of thefactoryrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theidentificationrecord component.props()Returns the value of thepropsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Route
Creates an instance of aRouterecord class.- Parameters:
identification- the value for theidentificationrecord componentfactory- the value for thefactoryrecord componentprops- the value for thepropsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
identification
Returns the value of theidentificationrecord component.- Returns:
- the value of the
identificationrecord component
-
factory
Returns the value of thefactoryrecord component.- Returns:
- the value of the
factoryrecord component
-
props
Returns the value of thepropsrecord component.- Returns:
- the value of the
propsrecord component
-