java.lang.Object
java.lang.Record
tech.deplant.java4ever.framework.Address
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAddress
(int wid, BigInteger value) Creates an instance of aAddress
record class.Address
(BigInteger value) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.int
getType()
final int
hashCode()
Returns a hash code value for this object.boolean
isNull()
static Address
ofFutureDeploy
(Sdk sdk, ContractTemplate template, int workchainId, Map<String, Object> initialData, Credentials credentials) static Address
ofNullable
(Object nullableObject) final String
toString()
Returns a string representation of this record class.value()
Returns the value of thevalue
record component.int
wid()
Returns the value of thewid
record component.
-
Field Details
-
ZERO
-
-
Constructor Details
-
Address
-
Address
-
Address
Creates an instance of aAddress
record class.- Parameters:
wid
- the value for thewid
record componentvalue
- the value for thevalue
record component
-
-
Method Details
-
ofNullable
-
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
-
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 '=='. -
wid
public int wid()Returns the value of thewid
record component.- Returns:
- the value of the
wid
record component
-
value
Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-