Package com.vaadin.flow.server.dau
Record Class UserIdentityContext
java.lang.Object
java.lang.Record
com.vaadin.flow.server.dau.UserIdentityContext
- Record Components:
request- current Vaadin request, never null.session- current Vaadin session, can be null
- All Implemented Interfaces:
Serializable
public record UserIdentityContext(VaadinRequest request, VaadinSession session)
extends Record
implements Serializable
A context for
UserIdentitySupplier configurable function. Holds the
current instances of Vaadin request and Vaadin session.- Since:
- 24.5
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUserIdentityContext(VaadinRequest request, VaadinSession session) Creates an instance of aUserIdentityContextrecord class. -
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.request()Returns the value of therequestrecord component.session()Returns the value of thesessionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
request
Returns the value of therequestrecord component.- Returns:
- the value of the
requestrecord component
-
session
Returns the value of thesessionrecord component.- Returns:
- the value of the
sessionrecord component
-