net.sf.oval.collection
Interface CollectionFactory

All Known Implementing Classes:
CollectionFactoryJavolutionImpl, CollectionFactoryJDKImpl, CollectionFactoryTroveImpl

public interface CollectionFactory

Author:
Sebastian Thomschke

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
 

Method Detail

createList

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

Returns:
a new list

createList

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

Returns:
a new list

createMap

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

Returns:
a new map

createMap

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

Returns:
a new map

createSet

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

Returns:
a new set

createSet

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

Returns:
a new set


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