Record Class ClientSessionFilterByUser
java.lang.Object
java.lang.Record
org.keycloak.models.sessions.infinispan.stream.ClientSessionFilterByUser
- Record Components:
realmId- The Realm ID.userId- The User ID.
- All Implemented Interfaces:
Predicate<Map.Entry<?,SessionEntityWrapper<AuthenticatedClientSessionEntity>>>
@ProtoTypeId(65617)
@Proto
public record ClientSessionFilterByUser(String realmId, String userId)
extends Record
implements Predicate<Map.Entry<?,SessionEntityWrapper<AuthenticatedClientSessionEntity>>>
A
Predicate to filter AuthenticatedClientSessionEntity values based on the Realm ID and the User ID.-
Constructor Summary
ConstructorsConstructorDescriptionClientSessionFilterByUser(String realmId, String userId) Creates an instance of aClientSessionFilterByUserrecord 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.realmId()Returns the value of therealmIdrecord component.booleanfinal StringtoString()Returns a string representation of this record class.userId()Returns the value of theuserIdrecord component.
-
Constructor Details
-
Method Details
-
test
- Specified by:
testin interfacePredicate<Map.Entry<?,SessionEntityWrapper<AuthenticatedClientSessionEntity>>>
-
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). -
realmId
Returns the value of therealmIdrecord component.- Returns:
- the value of the
realmIdrecord component
-
userId
Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-