Class GravatarCryptoWalletAddress

java.lang.Object
com.github.natche.gravatarjavaclient.profile.serialization.GravatarCryptoWalletAddress

public final class GravatarCryptoWalletAddress extends Object
Represents a cryptocurrency wallet address on a Gravatar user's profile.
  • Constructor Details

    • GravatarCryptoWalletAddress

      public GravatarCryptoWalletAddress(String label, String address)
      Constructs a new CryptoWalletAddress.
      Parameters:
      label - the label for the cryptocurrency
      address - the cryptocurrency wallet address
      Throws:
      NullPointerException - if label or address is null
  • Method Details

    • getLabel

      public String getLabel()
      Returns the label for the cryptocurrency.
      Returns:
      the label for the cryptocurrency
    • getAddress

      public String getAddress()
      Returns the cryptocurrency wallet address.
      Returns:
      the cryptocurrency wallet address
    • equals

      public boolean equals(Object o)
      Returns whether the provided object is equal to this.
      Overrides:
      equals in class Object
      Parameters:
      o - the other object
      Returns:
      whether the provided object is equal to this
    • hashCode

      public int hashCode()
      Returns a hashcode for this object.
      Overrides:
      hashCode in class Object
      Returns:
      a hashcode for this object
    • toString

      public String toString()
      Returns a string representation of this object.
      Overrides:
      toString in class Object
      Returns:
      a string representation of this object