java.lang.Object
java.lang.Record
it.auties.whatsapp.model.signal.session.Session
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Set<SessionState> The field for thestatesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSession()Session(Set<SessionState> states) Creates an instance of aSessionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddState(SessionState state) final booleanIndicates whether some other object is "equal to" this one.findState(int version, byte[] baseKey) final inthashCode()Returns a hash code value for this object.booleanhasState(int version, byte[] baseKey) states()Returns the value of thestatesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
states
The field for thestatesrecord component.
-
-
Constructor Details
-
Session
Creates an instance of aSessionrecord class.- Parameters:
states- the value for thestatesrecord component
-
Session
public Session()
-
-
Method Details
-
closeCurrentState
-
currentState
-
hasState
public boolean hasState(int version, byte[] baseKey) -
findState
-
addState
-
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). -
states
Returns the value of thestatesrecord component.- Returns:
- the value of the
statesrecord component
-