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 aSecurityContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecollaborativeSpacerecord component.final booleanIndicates whether some other object is "equal to" this one.static SecurityContextfromString(String ctx) final inthashCode()Returns a hash code value for this object.Returns the value of theorganizationrecord component.role()Returns the value of therolerecord component.toString()Returns a string representation of this record class.static StringtoString(SecurityContext value) value()
-
Constructor Details
-
SecurityContext
Creates an instance of aSecurityContextrecord class.- Parameters:
role- the value for therolerecord componentorganization- the value for theorganizationrecord componentcollaborativeSpace- the value for thecollaborativeSpacerecord 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 therolerecord component.- Returns:
- the value of the
rolerecord component
-
organization
Returns the value of theorganizationrecord component.- Returns:
- the value of the
organizationrecord component
-
collaborativeSpace
Returns the value of thecollaborativeSpacerecord component.- Returns:
- the value of the
collaborativeSpacerecord component
-