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 aProofsConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecacheInLocalStoragerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProofsConfig
Creates an instance of aProofsConfigrecord class.- Parameters:
cacheInLocalStorage- the value for thecacheInLocalStoragerecord 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 thecacheInLocalStoragerecord component.- Returns:
- the value of the
cacheInLocalStoragerecord component
-