public final class CollectionUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Iterable<Object> |
iterableOf(Object thingToIterable)
Turns
thingToIterable into an iterable. |
static Object |
materializeIterableIf(Object entryValue) |
public static Iterable<Object> iterableOf(Object thingToIterable)
thingToIterable into an iterable. In case of null, it returns an empty collection.
Returns the iterable itself when the thing is already iterable. An array will be turned into an iterable.
A single object will be returned as a singleton list.thingToIterable - A thing that should be iterated over. Can be null.Copyright © 2015–2023 Neo Technology, Inc.. All rights reserved.