public abstract class Tools extends Object
Constructor and Description |
---|
Tools() |
Modifier and Type | Method and 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() |
static boolean |
objectsEqual(Object obj1,
Object obj2)
Deprecated.
(since 5.2), use
EqualsHelper.areEqual(Object, Object) . |
public static <K,V> Map<K,V> newHashMap()
public static <E> Set<E> newHashSet()
public static <K,V> Map<K,V> newLinkedHashMap()
@Deprecated public static boolean objectsEqual(Object obj1, Object obj2)
EqualsHelper.areEqual(Object, Object)
.public static <X> List<X> collectionToList(Collection<X> collection)
public static <T> List<Pair<Integer,T>> listToIndexElementPairList(List<T> list)
list
- List to transform.Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.