Class Tools
- java.lang.Object
-
- org.hibernate.envers.internal.tools.Tools
-
public abstract class Tools extends Object
-
-
Constructor Summary
Constructors Constructor Description Tools()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <X> List<X>
collectionToList(Collection<X> collection)
static boolean
iteratorsContentEqual(Iterator iter1, Iterator iter2)
static <T> List<T>
iteratorToList(Iterator<T> iter)
static <T> List<Pair<Integer,T>>
listToIndexElementPairList(List<T> list)
Transforms a list of arbitrary elements to a list of index-element pairs.static <K,V>
Map<K,V>newHashMap()
static <E> Set<E>
newHashSet()
static <K,V>
Map<K,V>newLinkedHashMap()
-
-
-
Method Detail
-
newHashMap
public static <K,V> Map<K,V> newHashMap()
-
newHashSet
public static <E> Set<E> newHashSet()
-
newLinkedHashMap
public static <K,V> Map<K,V> newLinkedHashMap()
-
collectionToList
public static <X> List<X> collectionToList(Collection<X> collection)
-
listToIndexElementPairList
public static <T> List<Pair<Integer,T>> listToIndexElementPairList(List<T> list)
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), ...)
-
-