Class Tools
java.lang.Object
org.hibernate.envers.internal.tools.Tools
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <X> List<X>
collectionToList
(Collection<X> collection) static <T> List<T>
iteratorToList
(Iterator<T> iter) listToIndexElementPairList
(List<T> list) Transforms a list of arbitrary elements to a list of index-element pairs.static <K,
V> Map<K, V> static <E> Set<E>
static <K,
V> Map<K, V>
-
Constructor Details
-
Tools
public Tools()
-
-
Method Details
-
newHashMap
-
newHashSet
-
newLinkedHashMap
-
iteratorToList
-
collectionToList
-
listToIndexElementPairList
Transforms a list of arbitrary elements to a list of index-element pairs.- Parameters:
list
- List to transform.- Returns:
- A list of pairs: ((0, element_at_index_0), (1, element_at_index_1), ...)
-