public class CollectionsUtil extends Object
Modifier and Type | Method and Description |
---|---|
static <T> List<T> |
toList(Enumeration<T> objects)
Create an Object
List from the supplied Enumeration of objects. |
static <T> List<T> |
toList(T... objects)
Create an Object
List from the supplied objects. |
static <T> Set<T> |
toSet(T... objects)
Create an Object
Set from the supplied objects. |
public static <T> Set<T> toSet(T... objects)
Set
from the supplied objects.objects
- The objects to be added to the set.Set
.public static <T> List<T> toList(T... objects)
List
from the supplied objects.objects
- The objects to be added to the list.List
.public static <T> List<T> toList(Enumeration<T> objects)
List
from the supplied Enumeration of objects.objects
- The objects to be added to the list.List
.Copyright © 2020. All rights reserved.