Class Hash256

java.lang.Object
org.xrpl.xrpl4j.model.immutables.Wrapper<String>
org.xrpl.xrpl4j.model.transactions.Hash256
All Implemented Interfaces:
Serializable, Comparable<Wrapper<String>>

@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class Hash256 extends Wrapper<String>
A wrapped String containing the Hex representation of a 256-bit Hash.
See Also:
  • Method Details

    • value

      public String value()
      The wrapped value.
      Specified by:
      value in class Wrapper<String>
      Returns:
      The wrapped value.
    • of

      public static Hash256 of(String value)
      Construct a new immutable Hash256 instance.
      Parameters:
      value - The value for the value attribute
      Returns:
      An immutable Hash256 instance
    • toString

      public String toString()
      Overrides:
      toString in class Wrapper<String>
    • validateLength

      @Check public void validateLength()
      Validates that a Hash256's value's length is equal to 64 characters.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Wrapper<String>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Wrapper<String>