Package com.macrofocus.common.collection

# Class PluggableCollectionFactory

java.lang.Object
com.macrofocus.common.collection.PluggableCollectionFactory

All Implemented Interfaces:
  `CollectionFactory`

public class PluggableCollectionFactory extends Object implements CollectionFactory

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PluggableCollectionFactory()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `<K, V> Map<K,V>`
  `concurrentHashMap()`
  `<T> Set<T>`
  `concurrentLinkedHashSet()`
  `<T> List<T>`
  `copyOnWriteArrayList()`
  `static CollectionFactory`
  `getInstance()`
  `<T> Set<T>`
  `linkedHashSet()`
  `static void`
  `setInstance(CollectionFactory instance)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### PluggableCollectionFactory

    public PluggableCollectionFactory()

- ## Method Details

  - ### getInstance

    public static CollectionFactory getInstance()

  - ### setInstance

    public static void setInstance(CollectionFactory instance)

  - ### copyOnWriteArrayList

    public <T> List<T> copyOnWriteArrayList()
    Specified by:
      `copyOnWriteArrayList` in interface `CollectionFactory`

  - ### concurrentHashMap

    public <K, V> Map<K,V> concurrentHashMap()
    Specified by:
      `concurrentHashMap` in interface `CollectionFactory`

  - ### linkedHashSet

    public <T> Set<T> linkedHashSet()
    Specified by:
      `linkedHashSet` in interface `CollectionFactory`

  - ### concurrentLinkedHashSet

    public <T> Set<T> concurrentLinkedHashSet()
    Specified by:
      `concurrentLinkedHashSet` in interface `CollectionFactory`