Package com.technia.dsx.threedspace.pno
Record Class SecurityContext
java.lang.Object
java.lang.Record
com.technia.dsx.threedspace.pno.SecurityContext
-
Constructor Summary
ConstructorsConstructorDescriptionSecurityContext
(String role, String organization, String collaborativeSpace) Creates an instance of aSecurityContext
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecollaborativeSpace
record component.final boolean
Indicates whether some other object is "equal to" this one.static SecurityContext
fromString
(String ctx) final int
hashCode()
Returns a hash code value for this object.Returns the value of theorganization
record component.role()
Returns the value of therole
record component.toString()
Returns a string representation of this record class.static String
toString
(SecurityContext value) value()
-
Constructor Details
-
SecurityContext
Creates an instance of aSecurityContext
record class.- Parameters:
role
- the value for therole
record componentorganization
- the value for theorganization
record componentcollaborativeSpace
- the value for thecollaborativeSpace
record component
-
-
Method Details
-
fromString
-
toString
-
value
-
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)
. -
role
Returns the value of therole
record component.- Returns:
- the value of the
role
record component
-
organization
Returns the value of theorganization
record component.- Returns:
- the value of the
organization
record component
-
collaborativeSpace
Returns the value of thecollaborativeSpace
record component.- Returns:
- the value of the
collaborativeSpace
record component
-