java.lang.Object
java.lang.Record
tech.deplant.java4ever.binding.Client.ProofsConfig
- Record Components:
cacheInLocalStorage
- Cache proofs in the local storage. Default is `true`. If this value is set to `true`, downloaded proofs and master-chain BOCs are saved into thepersistent local storage (e.g. file system for native environments or browser's IndexedDBfor the web); otherwise all the data is cached only in memory in current client's contextand will be lost after destruction of the client.
- 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
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)
. -
cacheInLocalStorage
Returns the value of thecacheInLocalStorage
record component.- Returns:
- the value of the
cacheInLocalStorage
record component
-