| java.lang.Object com.sun.jbi.ui.runtime.GenericsSupport
GenericsSupport | public class GenericsSupport (Code) | | author: graj |
GenericsSupport | public GenericsSupport()(Code) | | |
main | public static void main(String[] args)(Code) | | Parameters: args - |
toArray | public static Type[] toArray(Collection<Type> collection, Class<Type> componentType)(Code) | | Parameters: collection - Parameters: componentType - |
toList | public static List<Type> toList(Type... array)(Code) | | We can now use this to produce lists of ints or Strings:
List ints = Lists.toList(1, 2, 3);
List names = Lists.toList("Gopalan", "Suresh", "Raj");
Parameters: array - |
|
|