public class Tools extends Object
| Constructor and Description |
|---|
Tools() |
| Modifier and Type | Method and Description |
|---|---|
static <E> Iterator<E> |
iterator(Iterator<? extends E>... iterators) |
static <N> List<N> |
list(Iterator<N> iterable) |
static int |
max(int value,
int... values) |
static Type |
resolve(Type implementation,
Class<?> type,
int parameterIndex)
A simplistic implementation, it may not handle all cases but it should handle enough.
|
static <N> Set<N> |
set() |
static <N> Set<N> |
set(Iterable<N> iterable) |
static <N> Set<N> |
set(Iterator<N> iterator) |
static <N> Set<N> |
set(N... objects) |
static <N> Set<N> |
set(N object) |
public static <N> Set<N> set()
public static <N> Set<N> set(N object)
public static <N> Set<N> set(N... objects) throws NullPointerException
NullPointerExceptionpublic static int max(int value,
int... values)
public static Type resolve(Type implementation, Class<?> type, int parameterIndex)
implementation - the type for which the parameter requires a resolutiontype - the type that owns the parameterparameterIndex - the parameter indexCopyright © 2025 JBoss by Red Hat. All Rights Reserved.