Class ArrayListType<T>

All Implemented Interfaces:
Serializable, Cloneable, Iterable<T>, Collection<T>, List<T>, RandomAccess
Direct Known Subclasses:
ArrayListInteger, ArrayListLong, ArrayListShort, ArrayListString

public abstract class ArrayListType<T> extends ArrayList<T>
In Java, there is no real way to detect the difference between the empty array lists ArrayList<Integer> and ArrayList<String>. This class converts a generic class into a regular class, so it can be detected. It is designed to be used in SQL with a prepared statement when you want to pass an array like in select * from mytable where col1 = ANY(?)

Note that select * from mytable where col1 in (?) must be re-written like select * from mytable where col1 = ANY(?)

In these cases, subclasses of this abstract class must be used rather than the generic.
See Also:
  • Constructor Details

    • ArrayListType

      public ArrayListType()