JHotDraw 6.0b1

org.jhotdraw.util
Class CollectionsFactory

java.lang.Object
  extended by org.jhotdraw.util.CollectionsFactory
Direct Known Subclasses:
CollectionsFactoryJDK11, CollectionsFactoryJDK12

public abstract class CollectionsFactory
extends java.lang.Object


Constructor Summary
CollectionsFactory()
           
 
Method Summary
protected static CollectionsFactory createCollectionsFactory(java.lang.String jdkVersion)
           
abstract  java.util.List createList()
           
abstract  java.util.List createList(java.util.Collection initList)
           
abstract  java.util.List createList(int initSize)
           
abstract  java.util.Map createMap()
           
abstract  java.util.Map createMap(java.util.Map initMap)
           
abstract  java.util.Set createSet()
           
abstract  java.util.Set createSet(java.util.Set initSet)
           
static CollectionsFactory current()
           
protected static CollectionsFactory determineCollectionsFactory()
           
protected static boolean isJDK12()
           
 
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

createList

public abstract java.util.List createList()

createList

public abstract java.util.List createList(java.util.Collection initList)

createList

public abstract java.util.List createList(int initSize)

createMap

public abstract java.util.Map createMap()

createMap

public abstract java.util.Map createMap(java.util.Map initMap)

createSet

public abstract java.util.Set createSet()

createSet

public abstract java.util.Set createSet(java.util.Set initSet)

current

public static CollectionsFactory current()

determineCollectionsFactory

protected static CollectionsFactory determineCollectionsFactory()

isJDK12

protected static boolean isJDK12()

createCollectionsFactory

protected static CollectionsFactory createCollectionsFactory(java.lang.String jdkVersion)

JHotDraw 6.0b1