Package org.bsc.javelit
Record Class JtSessionValue<T>
java.lang.Object
java.lang.Record
org.bsc.javelit.JtSessionValue<T>
-
Constructor Summary
ConstructorsConstructorDescriptionJtSessionValue(String key) Creates an instance of aJtSessionValuerecord class. -
Method Summary
Modifier and TypeMethodDescriptionclear()computeIfAbsent(Function<String, T> getter) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.<R> RifNotPresentOrElse(Function<JtSessionValue<T>, R> eval, R defaultValue) <R> RifNotPresentOrElseGet(Function<JtSessionValue<T>, R> eval, Supplier<R> defaultValue) key()Returns the value of thekeyrecord component.voidtoString()Returns a string representation of this record class.value()
-
Constructor Details
-
JtSessionValue
Creates an instance of aJtSessionValuerecord class.- Parameters:
key- the value for thekeyrecord component
-
-
Method Details
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
value
-
computeIfAbsent
-
setValue
-
clear
-
ifNotPresentOrElseGet
-
ifNotPresentOrElse
-
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).
-