com.hazelcast.util
Class IterableUtil
java.lang.Object
com.hazelcast.util.IterableUtil
public final class IterableUtil
- extends Object
Utility functions for working with Iterable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getFirst
public static <T> T getFirst(Iterable<T> iterable,
T defaultValue)
- Returns:
- First element or defaultValue if iterable is empty
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.