com.hazelcast.util
Class IterableUtil

java.lang.Object
  extended by com.hazelcast.util.IterableUtil

public final class IterableUtil
extends Object

Utility functions for working with Iterable


Method Summary
static
<T> T
getFirst(Iterable<T> iterable, T defaultValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.