Record Class Address

java.lang.Object
java.lang.Record
tech.deplant.java4ever.framework.Address

public record Address(int wid, BigInteger value) extends Record
  • Field Details

    • ZERO

      public static final Address ZERO
  • Constructor Details

    • Address

      public Address(String address)
    • Address

      public Address(BigInteger value)
    • Address

      public Address(int wid, BigInteger value)
      Creates an instance of a Address record class.
      Parameters:
      wid - the value for the wid record component
      value - the value for the value record component
  • Method Details

    • ofNullable

      public static Address ofNullable(Object nullableObject)
    • ofFutureDeploy

      public static Address ofFutureDeploy(Sdk sdk, ContractTemplate template, int workchainId, Map<String,Object> initialData, Credentials credentials) throws tech.deplant.java4ever.binding.EverSdkException
      Throws:
      tech.deplant.java4ever.binding.EverSdkException
    • isNull

      public boolean isNull()
    • getType

      public int getType()
      Returns:
      Returns type of the address: 0 - addr_none 1 - addr_extern 2 - addr_std
    • makeAddrStd

      public String makeAddrStd()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • wid

      public int wid()
      Returns the value of the wid record component.
      Returns:
      the value of the wid record component
    • value

      public BigInteger value()
      Returns the value of the value record component.
      Returns:
      the value of the value record component