Record Class ValidationUtils.RequiredRole
java.lang.Object
java.lang.Record
io.fluxcapacitor.javaclient.tracking.handling.validation.ValidationUtils.RequiredRole
- Enclosing class:
ValidationUtils
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
RequiredRole
(String value, boolean throwIfUnauthorized, boolean requiresUser, boolean forbidsUser) Creates an instance of aRequiredRole
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.boolean
Returns the value of theforbidsUser
record component.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of therequiresUser
record component.boolean
Returns the value of thethrowIfUnauthorized
record component.final String
toString()
Returns a string representation of this record class.value()
Returns the value of thevalue
record component.
-
Constructor Details
-
RequiredRole
protected RequiredRole(@Nullable String value, boolean throwIfUnauthorized, boolean requiresUser, boolean forbidsUser) Creates an instance of aRequiredRole
record class.- Parameters:
value
- the value for thevalue
record componentthrowIfUnauthorized
- the value for thethrowIfUnauthorized
record componentrequiresUser
- the value for therequiresUser
record componentforbidsUser
- the value for theforbidsUser
record 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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
value
Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-
throwIfUnauthorized
public boolean throwIfUnauthorized()Returns the value of thethrowIfUnauthorized
record component.- Returns:
- the value of the
throwIfUnauthorized
record component
-
requiresUser
public boolean requiresUser()Returns the value of therequiresUser
record component.- Returns:
- the value of the
requiresUser
record component
-
forbidsUser
public boolean forbidsUser()Returns the value of theforbidsUser
record component.- Returns:
- the value of the
forbidsUser
record component
-