Class CollectionsFactory


  • public class CollectionsFactory
    extends java.lang.Object
    Collections factory.
    Version:
    $Revision$
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <K,​V>
      java.util.Map<K,​V>
      createConcurrentReaderMap()
      Defines the concurrent map implementation
      static <T> java.util.Set<T> createConcurrentReferenceSet()
      Defines the concurrent reference set implementation
      static <T> java.util.Set<T> createConcurrentSet()
      Defines the concurrent set implementation
      static <T> java.util.List<T> createCopyOnWriteList()
      Defines the concurrent list implementation
      static <T> java.util.Set<T> createCopyOnWriteSet()
      Defines the concurrent set implementation
      static <T> java.util.List<T> createLazyList()
      Defines the list implementation
      static <K,​V>
      java.util.Map<K,​V>
      createLazyMap()
      Defines the map implementation
      static <T> java.util.Set<T> createLazySet()
      Defines the set implementation
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CollectionsFactory

        public CollectionsFactory()
    • Method Detail

      • createLazyMap

        public static final <K,​V> java.util.Map<K,​V> createLazyMap()
        Defines the map implementation
        Type Parameters:
        K - the key type
        V - the value type
        Returns:
        the map
      • createLazyList

        public static final <T> java.util.List<T> createLazyList()
        Defines the list implementation
        Type Parameters:
        T - the type
        Returns:
        the list
      • createLazySet

        public static final <T> java.util.Set<T> createLazySet()
        Defines the set implementation
        Type Parameters:
        T - the type
        Returns:
        the set
      • createConcurrentReaderMap

        public static final <K,​V> java.util.Map<K,​V> createConcurrentReaderMap()
        Defines the concurrent map implementation
        Type Parameters:
        K - the key type
        V - the value type
        Returns:
        the map
      • createCopyOnWriteList

        public static final <T> java.util.List<T> createCopyOnWriteList()
        Defines the concurrent list implementation
        Type Parameters:
        T - the type
        Returns:
        the list
      • createCopyOnWriteSet

        public static final <T> java.util.Set<T> createCopyOnWriteSet()
        Defines the concurrent set implementation
        Type Parameters:
        T - the type
        Returns:
        the set
      • createConcurrentSet

        public static final <T> java.util.Set<T> createConcurrentSet()
        Defines the concurrent set implementation
        Type Parameters:
        T - the type
        Returns:
        the set
      • createConcurrentReferenceSet

        public static final <T> java.util.Set<T> createConcurrentReferenceSet()
        Defines the concurrent reference set implementation
        Type Parameters:
        T - the type
        Returns:
        the set