net.sf.oval.collection
Class CollectionFactoryJDKImpl

java.lang.Object
  extended by net.sf.oval.collection.CollectionFactoryJDKImpl
All Implemented Interfaces:
CollectionFactory

public class CollectionFactoryJDKImpl
extends Object
implements CollectionFactory

Author:
Sebastian Thomschke

Constructor Summary
CollectionFactoryJDKImpl()
           
 
Method Summary
<ValueType>
List<ValueType>
createList()
          Instantiate an ArrayList like list object
<ValueType>
List<ValueType>
createList(int initialCapacity)
          Instantiate an ArrayList like list object
<KeyType,ValueType>
Map<KeyType,ValueType>
createMap()
          Instantiate a HashMap like map object
<KeyType,ValueType>
Map<KeyType,ValueType>
createMap(int initialCapacity)
          Instantiate a HashMap like map object
<ValueType>
Set<ValueType>
createSet()
          Instantiate a HashSet like set object
<ValueType>
Set<ValueType>
createSet(int initialCapacity)
          Instantiate a HashSet like set object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionFactoryJDKImpl

public CollectionFactoryJDKImpl()
Method Detail

createList

public <ValueType> List<ValueType> createList()
Instantiate an ArrayList like list object

Specified by:
createList in interface CollectionFactory
Returns:
a new list

createList

public <ValueType> List<ValueType> createList(int initialCapacity)
Instantiate an ArrayList like list object

Specified by:
createList in interface CollectionFactory
Returns:
a new list

createMap

public <KeyType,ValueType> Map<KeyType,ValueType> createMap()
Instantiate a HashMap like map object

Specified by:
createMap in interface CollectionFactory
Returns:
a new map

createMap

public <KeyType,ValueType> Map<KeyType,ValueType> createMap(int initialCapacity)
Instantiate a HashMap like map object

Specified by:
createMap in interface CollectionFactory
Returns:
a new map

createSet

public <ValueType> Set<ValueType> createSet()
Instantiate a HashSet like set object

Specified by:
createSet in interface CollectionFactory
Returns:
a new set

createSet

public <ValueType> Set<ValueType> createSet(int initialCapacity)
Instantiate a HashSet like set object

Specified by:
createSet in interface CollectionFactory
Returns:
a new set


Copyright © 2005–2015 The OVal Development Team. All rights reserved.