Class CollectionConverter<T>

All Implemented Interfaces:
Serializable, Function<Collection<?>,T>, ObjectConverter<Collection<?>,T>
Direct Known Subclasses:
CollectionConverter.List, CollectionConverter.Set

abstract class CollectionConverter<T> extends SystemConverter<Collection<?>,T>
Handles conversions from Collection to various objects. The source class is fixed to Collection. The target class is determined by the inner class which extends this CollectionConverter class.

Immutability and thread safety

This base class is immutable, and thus inherently thread-safe. Subclasses should be immutable and thread-safe too if they are intended to be cached in ConverterRegistry.
Since:
0.3
Version:
0.3
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      For cross-version compatibility.
      See Also:
  • Constructor Details

    • CollectionConverter

      CollectionConverter(Class<T> targetClass)
      For inner classes only.
  • Method Details