java.lang.Object
java.lang.Record
tech.deplant.java4ever.binding.Client.ProofsConfig
- Record Components:
cacheInLocalStorage
- Default is `true`. If this value is set to `true`, downloaded proofs and master-chain BOCs are saved into the persistent local storage (e.g. file system for native environments or browser's IndexedDB for the web); otherwise all the data is cached only in memory in current client's context and will be lost after destruction of the client. Cache proofs in the local storage.
- Enclosing class:
Client
-
Constructor Summary
ConstructorsConstructorDescriptionProofsConfig
(Boolean cacheInLocalStorage) Creates an instance of aProofsConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecacheInLocalStorage
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ProofsConfig
Creates an instance of aProofsConfig
record class.- Parameters:
cacheInLocalStorage
- the value for thecacheInLocalStorage
record component
-
-
Method Details
-
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)
. -
cacheInLocalStorage
Returns the value of thecacheInLocalStorage
record component.- Returns:
- the value of the
cacheInLocalStorage
record component
-