java.lang.Object
java.lang.Record
tech.deplant.java4ever.framework.datatype.Address
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAddress(int wid, BigInteger value) Creates an instance of aAddressrecord class.Instantiates a new Address.Address(BigInteger value) Instantiates a new Address. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static AddressFrom abi address.static AddressFrom java address.final inthashCode()Returns a hash code value for this object.booleanIs zero address boolean.Make addr std string.static AddressofNullable(Object nullableObject) Of nullable address.toABI()To abi object.toJava()To java j.toString()Returns a string representation of this record class.type()Type abi type.value()Returns the value of thevaluerecord component.intwid()Returns the value of thewidrecord component.
-
Field Details
-
ZERO
The constant 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
-
fromJava
-
fromABI
-
ofNullable
-
isZeroAddress
public boolean isZeroAddress()Is zero address boolean.- Returns:
- the boolean
-
makeAddrStd
-
toString
-
toJava
-
toABI
-
type
-
hashCode
-
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
-