Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static < The type of the collection T extends CollectionThe type of the element E> T | Returns: The givenCollectionThe collection, E[] Collection that will receive the items returned by the IteratorThe array to add to the given array)CollectionAdds to the given |
| public static < The type of the collection T extends CollectionThe type of the element E> T | Returns: The givenCollectionThe collection, Iterable<? extends E> Collection that will receive the items returned by the IteratorThe iterable)Iterable to add to the given CollectionAdds to the given |
| public static < The type of the collection T extends CollectionThe type of the element E> T | Returns: The givenCollectionThe collection, Iterator<? extends E> Collection that will receive the items returned by the IteratorThe iterator)Iterator that will return the items to add to the CollectionAdds to the given |
| public static <T> T[] | Returns: A new array filled with the items returned by the given iteratorThe type of the array componentType, Iterable<? extends T> The iterable)Iterable that will iterate over the collection of items to add
into the new array in the same order they are returnedCreates a new array and adds the items returned by the given |
| public static <T> T[] | Returns: A new array filled with the items returned by the given iteratorThe type of the array componentType, Iterator<? extends T> The iterator)Iterator that will iterate over the collection of items to add
into the new array in the same order they are returnedCreates a new array and adds the items returned by the given |
| public static <E> List | |
| public static <T> List | Returns: A newListThe iterator)ListIterator to iterate over items to add
into a list in the same order they are returnedCreates a new |
| CollectionTools | back to summary |
|---|---|
| private CollectionTools() Creates a new | |
| addAll | back to summary |
|---|---|
| public static <T extends Collection Adds to the given
| |
| addAll | back to summary |
|---|---|
| public static <T extends Collection Adds to the given
| |
| addAll | back to summary |
|---|---|
| public static <T extends Collection Adds to the given
| |
| array | back to summary |
|---|---|
| public static <T> T[] array(Class<T> componentType, Iterable<? extends T> iterable) Creates a new array and adds the items returned by the given | |
| array | back to summary |
|---|---|
| public static <T> T[] array(Class<T> componentType, Iterator<? extends T> iterator) Creates a new array and adds the items returned by the given
| |
| list | back to summary |
|---|---|
| public static <E> List Returns a list corresponding to the specified array. Unlike | |
| list | back to summary |
|---|---|
| public static <T> List Creates a new
| |