/** * Create an Object {@link List} from the supplied objects. * @param objects The objects to be added to the list. * @return The {@link List}. */ public static <T> List<T> toList(T... objects) { List<T> theList = new ArrayList<T>(); addToCollection(theList, objects); return theList; }
/** * Create an Object {@link List} from the supplied objects. * @param objects The objects to be added to the list. * @return The {@link List}. */ public static <T> List<T> toList(T... objects) { List<T> theList = new ArrayList<T>(); addToCollection(theList, objects); return theList; }
/** * Create an Object {@link Set} from the supplied objects. * @param objects The objects to be added to the set. * @return The {@link Set}. */ public static <T> Set<T> toSet(T... objects) { Set<T> theSet = new HashSet<T>(); addToCollection(theSet, objects); return theSet; }
/** * Create an Object {@link Set} from the supplied objects. * @param objects The objects to be added to the set. * @return The {@link Set}. */ public static <T> Set<T> toSet(T... objects) { Set<T> theSet = new HashSet<T>(); addToCollection(theSet, objects); return theSet; }
/** * Create an Object {@link Set} from the supplied objects. * @param objects The objects to be added to the set. * @return The {@link Set}. */ public static <T> Set<T> toSet(T... objects) { Set<T> theSet = new HashSet<T>(); addToCollection(theSet, objects); return theSet; }
/** * Create an Object {@link List} from the supplied objects. * @param objects The objects to be added to the list. * @return The {@link List}. */ public static <T> List<T> toList(T... objects) { List<T> theList = new ArrayList<T>(); addToCollection(theList, objects); return theList; }