Package org.web3j.abi

Class TypeReference<T extends Type>

java.lang.Object
org.web3j.abi.TypeReference<T>
All Implemented Interfaces:
Comparable<TypeReference<T>>
Direct Known Subclasses:
TypeReference.StaticArrayTypeReference

public abstract class TypeReference<T extends Type> extends Object implements Comparable<TypeReference<T>>
Type wrapper to get around limitations of Java's type erasure. This is so that we can pass around Typed Array types.

See this blog post for further details.

It may make sense to switch to using Java's reflection Type to avoid working around this fundamental generics limitation.