Package org.polkadot.types.primitive
Class Null
- java.lang.Object
-
- org.polkadot.types.primitive.Null
-
- All Implemented Interfaces:
Codec
- Direct Known Subclasses:
EventRecord.Finalization,ExtrinsicStatus.Dropped,ExtrinsicStatus.Future,ExtrinsicStatus.Invalid,ExtrinsicStatus.Ready,Origin,Storage.Default,Storage.Default,Storage.Optional,Storage.Optional
public class Null extends java.lang.Object implements Codec
Implements a type that does not contain anything (apart from `null`)
-
-
Constructor Summary
Constructors Constructor Description Null()
-
Method Summary
Modifier and Type Method Description booleaneq(java.lang.Object other)Compares the value of the input to see if there is a matchintgetEncodedLength()The length of the value when encoded as a Uint8ArraybooleanisEmpty()Checks if the value is an empty value (always true)java.lang.StringtoHex()Returns a hex string representation of the valuejava.lang.ObjecttoJson()Converts the Object to JSON, typically used for RPC transfersjava.lang.StringtoString()Returns the string representation of the valuebyte[]toU8a(boolean isBare)Encodes the value as a Uint8Array as per the parity-codec specifications
-
-
-
Method Detail
-
getEncodedLength
public int getEncodedLength()
The length of the value when encoded as a Uint8Array- Specified by:
getEncodedLengthin interfaceCodec
-
isEmpty
public boolean isEmpty()
Checks if the value is an empty value (always true)
-
eq
public boolean eq(java.lang.Object other)
Compares the value of the input to see if there is a match
-
toHex
public java.lang.String toHex()
Returns a hex string representation of the value
-
toJson
public java.lang.Object toJson()
Converts the Object to JSON, typically used for RPC transfers
-
toString
public java.lang.String toString()
Returns the string representation of the value- Overrides:
toStringin classjava.lang.Object
-
-