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() |
public static <K,V> Map<K,V> newHashMap()
public static <E> Set<E> newHashSet()
public static <K,V> Map<K,V> newLinkedHashMap()
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 © 2019 JBoss by Red Hat. All rights reserved.