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 aAddressrecord class.Address(BigInteger value) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intgetType()final inthashCode()Returns a hash code value for this object.booleanisNull()static AddressofFutureDeploy(Sdk sdk, ContractTemplate template, int workchainId, Map<String, Object> initialData, Credentials credentials) static AddressofNullable(Object nullableObject) final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.intwid()Returns the value of thewidrecord component.
-
Field Details
-
ZERO
-
-
Constructor Details
-
Address
-
Address
-
Address
Creates an instance of aAddressrecord class.- Parameters:
wid- the value for thewidrecord componentvalue- the value for thevaluerecord 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 thewidrecord component.- Returns:
- the value of the
widrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-