java.lang.Object
java.lang.Record
tech.deplant.java4ever.framework.Seed
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.phrase()
Returns the value of thephrase
record component.static Seed
Generates random 12-words seed phrasestatic Seed
RANDOM_TON
(Sdk sdk) final String
toString()
Returns a string representation of this record class.int
words()
Returns the value of thewords
record component.
-
Field Details
-
DEFAULT_WORD_COUNT
public static final int DEFAULT_WORD_COUNT- See Also:
-
DICTIONARY_ENGLISH
public static final int DICTIONARY_ENGLISH- See Also:
-
HD_PATH
- See Also:
-
-
Constructor Details
-
Seed
Creates an instance of aSeed
record class.- Parameters:
phrase
- the value for thephrase
record componentwords
- the value for thewords
record component
-
-
Method Details
-
RANDOM
Generates random 12-words seed phrase- Parameters:
sdk
-- Returns:
- Throws:
tech.deplant.java4ever.binding.EverSdkException
-
RANDOM_TON
- Throws:
tech.deplant.java4ever.binding.EverSdkException
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
phrase
Returns the value of thephrase
record component.- Returns:
- the value of the
phrase
record component
-
words
public int words()Returns the value of thewords
record component.- Returns:
- the value of the
words
record component
-