Module org.praxislive.core
Package org.praxislive.core.services
Record Class ComponentFactory.Redirect
java.lang.Object
java.lang.Record
org.praxislive.core.services.ComponentFactory.Redirect
- Enclosing interface:
ComponentFactory
public static record ComponentFactory.Redirect(Class<? extends Service> service, String control)
extends Record
A factory service redirect. See
ComponentFactory.componentRedirect() and
ComponentFactory.rootRedirect().-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontrol()Returns the value of thecontrolrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.service()Returns the value of theservicerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Redirect
Creates an instance of aRedirectrecord class.- Parameters:
service- the value for theservicerecord componentcontrol- the value for thecontrolrecord 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). -
service
Returns the value of theservicerecord component.- Returns:
- the value of the
servicerecord component
-
control
Returns the value of thecontrolrecord component.- Returns:
- the value of the
controlrecord component
-