java.lang.Object
java.lang.Record
tech.deplant.java4ever.framework.datatype.Uint
-
Constructor Summary
ConstructorsConstructorDescriptionUint(int size, BigInteger value) Creates an instance of aUintrecord class.Instantiates a new Uint.Uint(BigInteger value) Instantiates a new Uint. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static UintOf uint.intsize()Returns the value of thesizerecord component.toABI()To abi object.To big integer big integer.toJava()To java j.toString()Returns a string representation of this record class.type()Type abi type.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
Uint
-
Uint
-
Uint
Creates an instance of aUintrecord class.- Parameters:
size- the value for thesizerecord componentvalue- the value for thevaluerecord component
-
-
Method Details
-
of
-
toBigInteger
-
toString
-
toJava
Description copied from interface:AbiValueTo java j.- Specified by:
toJavain interfaceAbiValue<BigInteger>- Returns:
- the j
-
toABI
Description copied from interface:AbiValueTo abi object.- Specified by:
toABIin interfaceAbiValue<BigInteger>- Returns:
- the object
-
type
Description copied from interface:AbiValueType abi type.- Specified by:
typein interfaceAbiValue<BigInteger>- Returns:
- the abi 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 '=='. -
size
public int size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-