Package org.apache.tuweni.units.bigints
Interface BytesUInt256Value<T extends UInt256Value<T>>
- All Superinterfaces:
org.apache.tuweni.bytes.Bytes,org.apache.tuweni.bytes.Bytes32,Comparable<org.apache.tuweni.bytes.Bytes>,UInt256Value<T>
public interface BytesUInt256Value<T extends UInt256Value<T>>
extends org.apache.tuweni.bytes.Bytes32, UInt256Value<T>
-
Field Summary
Fields inherited from interface org.apache.tuweni.bytes.Bytes
EMPTYFields inherited from interface org.apache.tuweni.bytes.Bytes32
SIZE, ZERO -
Method Summary
Modifier and TypeMethodDescriptiondefault intdefault booleanisZero()default intdefault BigIntegerThe BigInteger corresponding to interpreting these bytes as an unsigned integer.default Stringdefault longtoLong()default StringMethods inherited from interface org.apache.tuweni.bytes.Bytes
and, and, appendHexTo, appendTo, appendTo, commonPrefix, commonPrefixLength, compareTo, copyTo, copyTo, get, getInt, getInt, getLong, getLong, hasLeadingZero, hasLeadingZeroByte, isEmpty, not, numberOfLeadingZeroBytes, numberOfTrailingZeroBytes, or, or, reverse, shiftLeft, shiftRight, slice, slice, toArray, toArray, toArrayUnsafe, toBase64String, toEllipsisHexString, toFastHex, toInt, toQuantityHexString, toString, toUnprefixedHexString, toUnsignedBigInteger, toUnsignedBigInteger, trimLeadingZeros, trimTrailingZeros, update, xor, xorMethods inherited from interface org.apache.tuweni.bytes.Bytes32
and, copy, mutableCopy, not, or, shiftLeft, shiftRight, size, xorMethods inherited from interface org.apache.tuweni.units.bigints.UInt256Value
add, add, addExact, addExact, addMod, addMod, addMod, addSafe, addSafe, divide, divide, divideCeil, divideCeil, fitsInt, fitsInt, fitsLong, fitsLong, greaterOrEqualThan, greaterThan, intValue, lessOrEqualThan, lessThan, max, mod, mod, mod0, mod0, multiply, multiply, multiplyMod, multiplyMod, multiplyMod, plus, plus, pow, pow, subtract, subtract, subtractExact, subtractExact, toBigInteger, toBytes, toDecimalString, toInt, toLong, toMinimalBytes, toSignedBigInteger, toSignedBigInteger, toUInt256
-
Method Details
-
toLong
default long toLong()- Specified by:
toLongin interfaceorg.apache.tuweni.bytes.Bytes
-
toHexString
- Specified by:
toHexStringin interfaceorg.apache.tuweni.bytes.Bytes
-
toShortHexString
- Specified by:
toShortHexStringin interfaceorg.apache.tuweni.bytes.Bytes
-
toBigInteger
Description copied from interface:UInt256ValueThe BigInteger corresponding to interpreting these bytes as an unsigned integer.- Specified by:
toBigIntegerin interfaceorg.apache.tuweni.bytes.Bytes- Specified by:
toBigIntegerin interfaceUInt256Value<T extends UInt256Value<T>>- Returns:
- A positive (or zero)
BigIntegercorresponding to interpreting these bytes as an unsigned integer.
-
numberOfLeadingZeros
default int numberOfLeadingZeros()- Specified by:
numberOfLeadingZerosin interfaceorg.apache.tuweni.bytes.Bytes
-
isZero
default boolean isZero()- Specified by:
isZeroin interfaceorg.apache.tuweni.bytes.Bytes
-
bitLength
default int bitLength()- Specified by:
bitLengthin interfaceorg.apache.tuweni.bytes.Bytes
-