Package app.ductape.sdk.sessions
Record Class SessionsTypes.SessionSchema
java.lang.Object
java.lang.Record
app.ductape.sdk.sessions.SessionsTypes.SessionSchema
- Enclosing class:
- SessionsTypes
-
Constructor Summary
ConstructorsConstructorDescriptionSessionSchema(String tag, String name, String description, String selector, long expiry, String period, Map<String, SessionsTypes.SessionSchemaField> schemaData) Creates an instance of aSessionSchemarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.longexpiry()Returns the value of theexpiryrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.period()Returns the value of theperiodrecord component.Returns the value of theschemaDatarecord component.selector()Returns the value of theselectorrecord component.tag()Returns the value of thetagrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionSchema
public SessionSchema(String tag, String name, String description, String selector, long expiry, String period, Map<String, SessionsTypes.SessionSchemaField> schemaData) Creates an instance of aSessionSchemarecord class.- Parameters:
tag- the value for thetagrecord componentname- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentselector- the value for theselectorrecord componentexpiry- the value for theexpiryrecord componentperiod- the value for theperiodrecord componentschemaData- the value for theschemaDatarecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
tag
Returns the value of thetagrecord component.- Returns:
- the value of the
tagrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
selector
Returns the value of theselectorrecord component.- Returns:
- the value of the
selectorrecord component
-
expiry
public long expiry()Returns the value of theexpiryrecord component.- Returns:
- the value of the
expiryrecord component
-
period
Returns the value of theperiodrecord component.- Returns:
- the value of the
periodrecord component
-
schemaData
Returns the value of theschemaDatarecord component.- Returns:
- the value of the
schemaDatarecord component
-