public class GenericsSupport extends Object
| Constructor and Description |
|---|
GenericsSupport() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
static <Type> Type[] |
toArray(Collection<Type> collection,
Class<Type> componentType) |
static <Type> List<Type> |
toList(Type... array)
We can now use this to produce lists of ints or Strings:
List
|
public static <Type> List<Type> toList(Type... array)
array - public static <Type> Type[] toArray(Collection<Type> collection, Class<Type> componentType)
collection - componentType - public static void main(String[] args)
args - Copyright © 2011-2016 OpenESB Community. All Rights Reserved.