Record Class JSentinelVersionStatus.Current
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.session.JSentinelVersionStatus.Current
- Record Components:
at- version snapshot, which equalsJSentinelVersionCheckcurrent value
- All Implemented Interfaces:
JSentinelVersionStatus
- Enclosing interface:
JSentinelVersionStatus
public static record JSentinelVersionStatus.Current(JSentinelVersion at)
extends Record
implements JSentinelVersionStatus
Session is still current — its snapshot matches the subject's
stored version.
-
Nested Class Summary
Nested classes/interfaces inherited from interface JSentinelVersionStatus
JSentinelVersionStatus.Current, JSentinelVersionStatus.DriftedModifier and TypeInterfaceDescriptionstatic final recordSession is still current — its snapshot matches the subject's stored version.static final recordSession has drifted — its snapshot differs from the subject's stored version. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionat()Returns the value of theatrecord component.current()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.snapshot()final StringtoString()Returns a string representation of this record class.Methods inherited from interface JSentinelVersionStatus
isCurrent, isDrifted
-
Constructor Details
-
Current
Validates the component.
-
-
Method Details
-
snapshot
- Specified by:
snapshotin interfaceJSentinelVersionStatus- Returns:
- the version snapshot the session was opened with
-
current
- Specified by:
currentin interfaceJSentinelVersionStatus- Returns:
- the subject's current security version
-
toString
-
hashCode
-
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). -
at
-