Record Class PrincipalTasks.PrincipalConverter.Input
java.lang.Object
java.lang.Record
ch.tocco.nice2.userbase.impl.auth.PrincipalTasks.PrincipalConverter.Input
- Enclosing class:
PrincipalTasks.PrincipalConverter
-
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.Returns the value of theprincipalrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thewithRolesrecord component.
-
Constructor Details
-
Input
Creates an instance of aInputrecord class.- Parameters:
principal- the value for theprincipalrecord componentwithRoles- the value for thewithRolesrecord 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. -
principal
Returns the value of theprincipalrecord component.- Returns:
- the value of the
principalrecord component
-
withRoles
public boolean withRoles()Returns the value of thewithRolesrecord component.- Returns:
- the value of the
withRolesrecord component
-