Class ElementOrComponentTypeComputer


  • public class ElementOrComponentTypeComputer
    extends TypeReferenceVisitorWithResult<LightweightTypeReference>
    A small utility that allows to query an arbitrary type reference for the value that is bound to the type parameter T of java.lang.Iterable<T>. If the queried type is an array, the component type of the array is returned. Clients will usually use the static method compute(LightweightTypeReference, ITypeReferenceOwner) but are free to override this class and call the constructor directly and pass it as a visitor to the processed type reference.
    Since:
    2.8