Record Class SessionResource.SessionBean
java.lang.Object
java.lang.Record
ch.tocco.nice2.rest.core.impl.resources.SessionResource.SessionBean
- Enclosing class:
SessionResource
-
Constructor Summary
ConstructorsConstructorDescriptionSessionBean(String businessUnit, boolean adminAllowed, boolean success, long timeout) Creates an instance of aSessionBeanrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theadminAllowedrecord component.Returns the value of thebusinessUnitrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleansuccess()Returns the value of thesuccessrecord component.longtimeout()Returns the value of thetimeoutrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionBean
Creates an instance of aSessionBeanrecord class.- Parameters:
businessUnit- the value for thebusinessUnitrecord componentadminAllowed- the value for theadminAllowedrecord componentsuccess- the value for thesuccessrecord componenttimeout- the value for thetimeoutrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
businessUnit
Returns the value of thebusinessUnitrecord component.- Returns:
- the value of the
businessUnitrecord component
-
adminAllowed
public boolean adminAllowed()Returns the value of theadminAllowedrecord component.- Returns:
- the value of the
adminAllowedrecord component
-
success
public boolean success()Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-
timeout
public long timeout()Returns the value of thetimeoutrecord component.- Returns:
- the value of the
timeoutrecord component
-