Package randoop.types
Class JDKTypes
- java.lang.Object
-
- randoop.types.JDKTypes
-
public class JDKTypes extends Object
Defines type constants for classes in the JDK Collections.These types should be maintained as new JDK versions are released. They have been updated for JDK 8.
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description JDKTypes()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GenericClassType
getImplementingTypeForCollection(ParameterizedType type)
Returns an arbitrary (but fixed) concrete collection type for each Collections type (e.g., returnsArrayList
forList
).
-
-
-
Field Detail
-
COLLECTION_TYPE
public static final GenericClassType COLLECTION_TYPE
TheGenericClassType
forCollection
-
COMPARATOR_TYPE
public static final GenericClassType COMPARATOR_TYPE
TheGenericClassType
forComparator
-
DEQUE_TYPE
public static final GenericClassType DEQUE_TYPE
TheGenericClassType
forDeque
-
LIST_TYPE
public static final GenericClassType LIST_TYPE
TheGenericClassType
forList
-
SET_TYPE
public static final GenericClassType SET_TYPE
TheGenericClassType
forSet
-
SORTED_SET_TYPE
public static final GenericClassType SORTED_SET_TYPE
TheGenericClassType
forSortedSet
-
QUEUE_TYPE
public static final GenericClassType QUEUE_TYPE
TheGenericClassType
forQueue
-
ARRAY_LIST_TYPE
public static final GenericClassType ARRAY_LIST_TYPE
TheGenericClassType
forArrayList
-
LINKED_LIST_TYPE
public static final GenericClassType LINKED_LIST_TYPE
TheGenericClassType
forLinkedList
-
LINKED_HASH_SET_TYPE
public static final GenericClassType LINKED_HASH_SET_TYPE
TheGenericClassType
forLinkedHashSet
-
STACK_TYPE
public static final GenericClassType STACK_TYPE
TheGenericClassType
forStack
-
ARRAY_DEQUE_TYPE
public static final GenericClassType ARRAY_DEQUE_TYPE
TheGenericClassType
forArrayDeque
-
TREE_SET_TYPE
public static final GenericClassType TREE_SET_TYPE
TheGenericClassType
forTreeSet
-
ENUM_SET_TYPE
public static final GenericClassType ENUM_SET_TYPE
TheGenericClassType
forEnumSet
-
HASH_SET_TYPE
public static final GenericClassType HASH_SET_TYPE
TheGenericClassType
forHashSet
-
VECTOR_TYPE
public static final GenericClassType VECTOR_TYPE
TheGenericClassType
forVector
-
NAVIGABLE_SET_TYPE
public static final GenericClassType NAVIGABLE_SET_TYPE
TheGenericClassType
forNavigableSet
-
BLOCKING_QUEUE_TYPE
public static final GenericClassType BLOCKING_QUEUE_TYPE
TheGenericClassType
forBlockingQueue
-
TRANSFER_QUEUE_TYPE
public static final GenericClassType TRANSFER_QUEUE_TYPE
TheGenericClassType
forTransferQueue
-
BLOCKING_DEQUE_TYPE
public static final GenericClassType BLOCKING_DEQUE_TYPE
TheGenericClassType
forBlockingDeque
-
PRIORITY_QUEUE_TYPE
public static final GenericClassType PRIORITY_QUEUE_TYPE
TheGenericClassType
forPriorityQueue
-
CONCURRENT_LINKED_QUEUE_TYPE
public static final GenericClassType CONCURRENT_LINKED_QUEUE_TYPE
TheGenericClassType
forConcurrentLinkedQueue
-
LINKED_BLOCKING_QUEUE_TYPE
public static final GenericClassType LINKED_BLOCKING_QUEUE_TYPE
TheGenericClassType
forLinkedBlockingQueue
-
ARRAY_BLOCKING_QUEUE_TYPE
public static final GenericClassType ARRAY_BLOCKING_QUEUE_TYPE
TheGenericClassType
forArrayBlockingQueue
-
PRIORITY_BLOCKING_QUEUE_TYPE
public static final GenericClassType PRIORITY_BLOCKING_QUEUE_TYPE
TheGenericClassType
forPriorityBlockingQueue
-
DELAY_QUEUE_TYPE
public static final GenericClassType DELAY_QUEUE_TYPE
TheGenericClassType
forDelayQueue
-
SYNCHRONOUS_QUEUE_TYPE
public static final GenericClassType SYNCHRONOUS_QUEUE_TYPE
TheGenericClassType
forSynchronousQueue
-
LINKED_BLOCKING_DEQUE_TYPE
public static final GenericClassType LINKED_BLOCKING_DEQUE_TYPE
TheGenericClassType
forLinkedBlockingDeque
-
LINKED_TRANSFER_QUEUE_TYPE
public static final GenericClassType LINKED_TRANSFER_QUEUE_TYPE
TheGenericClassType
forLinkedTransferQueue
-
CONCURRENT_SKIP_LIST_SET_TYPE
public static final GenericClassType CONCURRENT_SKIP_LIST_SET_TYPE
TheGenericClassType
forConcurrentSkipListSet
-
MAP_TYPE
public static final GenericClassType MAP_TYPE
TheGenericClassType
forMap
-
SORTED_MAP_TYPE
public static final GenericClassType SORTED_MAP_TYPE
TheGenericClassType
forSortedMap
-
TREE_MAP_TYPE
public static final GenericClassType TREE_MAP_TYPE
TheGenericClassType
forTreeMap
-
HASH_MAP_TYPE
public static final GenericClassType HASH_MAP_TYPE
TheGenericClassType
forHashMap
-
HASH_TABLE_TYPE
public static final GenericClassType HASH_TABLE_TYPE
TheGenericClassType
forHashtable
-
LINKED_HASH_MAP_TYPE
public static final GenericClassType LINKED_HASH_MAP_TYPE
TheGenericClassType
forLinkedHashMap
-
NAVIGABLE_MAP_TYPE
public static final GenericClassType NAVIGABLE_MAP_TYPE
TheGenericClassType
forNavigableMap
-
CONCURRENT_MAP_TYPE
public static final GenericClassType CONCURRENT_MAP_TYPE
TheGenericClassType
forConcurrentMap
-
CONCURRENT_NAVIGABLE_MAP_TYPE
public static final GenericClassType CONCURRENT_NAVIGABLE_MAP_TYPE
TheGenericClassType
forConcurrentNavigableMap
-
CONCURRENT_HASH_MAP_TYPE
public static final GenericClassType CONCURRENT_HASH_MAP_TYPE
TheGenericClassType
forConcurrentHashMap
-
CONCURRENT_SKIP_LIST_MAP_TYPE
public static final GenericClassType CONCURRENT_SKIP_LIST_MAP_TYPE
TheGenericClassType
forConcurrentSkipListMap
-
IDENTITY_HASH_MAP_TYPE
public static final GenericClassType IDENTITY_HASH_MAP_TYPE
TheGenericClassType
forIdentityHashMap
-
WEAK_HASH_MAP_TYPE
public static final GenericClassType WEAK_HASH_MAP_TYPE
TheGenericClassType
forWeakHashMap
-
ENUM_MAP_TYPE
public static final GenericClassType ENUM_MAP_TYPE
TheGenericClassType
forEnumMap
-
ABSTRACT_COLLECTION_TYPE
public static final GenericClassType ABSTRACT_COLLECTION_TYPE
TheGenericClassType
forAbstractCollection
-
ABSTRACT_SET_TYPE
public static final GenericClassType ABSTRACT_SET_TYPE
TheGenericClassType
forAbstractSet
-
ABSTRACT_LIST_TYPE
public static final GenericClassType ABSTRACT_LIST_TYPE
TheGenericClassType
forAbstractList
-
ABSTRACT_SEQUENTIAL_LIST_TYPE
public static final GenericClassType ABSTRACT_SEQUENTIAL_LIST_TYPE
TheGenericClassType
forAbstractSequentialList
-
ABSTRACT_QUEUE_TYPE
public static final GenericClassType ABSTRACT_QUEUE_TYPE
TheGenericClassType
forAbstractQueue
-
ABSTRACT_MAP_TYPE
public static final GenericClassType ABSTRACT_MAP_TYPE
TheGenericClassType
forAbstractMap
-
implementingTypeMap
private static Map<GenericClassType,GenericClassType> implementingTypeMap
Maps interface and abstract class types to a selected implementing type.
-
-
Method Detail
-
getImplementingTypeForCollection
public static GenericClassType getImplementingTypeForCollection(ParameterizedType type)
Returns an arbitrary (but fixed) concrete collection type for each Collections type (e.g., returnsArrayList
forList
). If a type is already concrete, then returns that type.- Parameters:
type
- the (abstract) Collections type- Returns:
- a concrete Collection type implementing the given type
-
-