java.lang.Object
java.lang.Record
tech.deplant.java4ever.binding.Client.CryptoConfig
- Record Components:
mnemonicDictionary- Mnemonic dictionary that will be used by default in crypto functions. If not specified, 1 dictionary will be used.mnemonicWordCount- Mnemonic word count that will be used by default in crypto functions. If not specified the default value will be 12.hdkeyDerivationPath- Derivation path that will be used by default in crypto functions. If not specified `m/44'/396'/0'/0/0` will be used.
- Enclosing class:
Client
-
Constructor Summary
ConstructorsConstructorDescriptionCryptoConfig(Number mnemonicDictionary, Number mnemonicWordCount, String hdkeyDerivationPath) Creates an instance of aCryptoConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehdkeyDerivationPathrecord component.Returns the value of themnemonicDictionaryrecord component.Returns the value of themnemonicWordCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CryptoConfig
public CryptoConfig(Number mnemonicDictionary, Number mnemonicWordCount, String hdkeyDerivationPath) Creates an instance of aCryptoConfigrecord class.- Parameters:
mnemonicDictionary- the value for themnemonicDictionaryrecord componentmnemonicWordCount- the value for themnemonicWordCountrecord componenthdkeyDerivationPath- the value for thehdkeyDerivationPathrecord 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). -
mnemonicDictionary
Returns the value of themnemonicDictionaryrecord component.- Returns:
- the value of the
mnemonicDictionaryrecord component
-
mnemonicWordCount
Returns the value of themnemonicWordCountrecord component.- Returns:
- the value of the
mnemonicWordCountrecord component
-
hdkeyDerivationPath
Returns the value of thehdkeyDerivationPathrecord component.- Returns:
- the value of the
hdkeyDerivationPathrecord component
-