Package jenkins.security.csp
Record Class ReportingContext.DecodedContext
java.lang.Object
java.lang.Record
jenkins.security.csp.ReportingContext.DecodedContext
- Enclosing class:
ReportingContext
-
Constructor Summary
ConstructorsConstructorDescriptionDecodedContext(String userId, String contextClassName, String restOfPath) Creates an instance of aDecodedContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontextClassNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therestOfPathrecord component.final StringtoString()Returns a string representation of this record class.userId()Returns the value of theuserIdrecord component.
-
Constructor Details
-
DecodedContext
public DecodedContext(@CheckForNull String userId, @NonNull String contextClassName, @NonNull String restOfPath) Creates an instance of aDecodedContextrecord class.- Parameters:
userId- the value for theuserIdrecord componentcontextClassName- the value for thecontextClassNamerecord componentrestOfPath- the value for therestOfPathrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
userId
Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
contextClassName
Returns the value of thecontextClassNamerecord component.- Returns:
- the value of the
contextClassNamerecord component
-
restOfPath
Returns the value of therestOfPathrecord component.- Returns:
- the value of the
restOfPathrecord component
-