Package app.ductape.sdk.sessions
Record Class SessionsResolver.SessionsResolverInstance
java.lang.Object
java.lang.Record
app.ductape.sdk.sessions.SessionsResolver.SessionsResolverInstance
- Enclosing class:
- SessionsResolver
public static record SessionsResolver.SessionsResolverInstance(Function<List<String>,Object> resolveReference, Function<String,SessionsResolver.SessionResolutionResult<String>> resolveString, Function<Object,SessionsResolver.SessionResolutionResult<Object>> resolveObject, Supplier<SessionsResolver.SessionData> getSessionData)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSessionsResolverInstance(Function<List<String>, Object> resolveReference, Function<String, SessionsResolver.SessionResolutionResult<String>> resolveString, Function<Object, SessionsResolver.SessionResolutionResult<Object>> resolveObject, Supplier<SessionsResolver.SessionData> getSessionData) Creates an instance of aSessionsResolverInstancerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegetSessionDatarecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theresolveObjectrecord component.Returns the value of theresolveReferencerecord component.Returns the value of theresolveStringrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionsResolverInstance
public SessionsResolverInstance(Function<List<String>, Object> resolveReference, Function<String, SessionsResolver.SessionResolutionResult<String>> resolveString, Function<Object, SessionsResolver.SessionResolutionResult<Object>> resolveObject, Supplier<SessionsResolver.SessionData> getSessionData) Creates an instance of aSessionsResolverInstancerecord class.- Parameters:
resolveReference- the value for theresolveReferencerecord componentresolveString- the value for theresolveStringrecord componentresolveObject- the value for theresolveObjectrecord componentgetSessionData- the value for thegetSessionDatarecord 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). -
resolveReference
Returns the value of theresolveReferencerecord component.- Returns:
- the value of the
resolveReferencerecord component
-
resolveString
Returns the value of theresolveStringrecord component.- Returns:
- the value of the
resolveStringrecord component
-
resolveObject
Returns the value of theresolveObjectrecord component.- Returns:
- the value of the
resolveObjectrecord component
-
getSessionData
Returns the value of thegetSessionDatarecord component.- Returns:
- the value of the
getSessionDatarecord component
-