このエントリーをはてなブックマークに追加

JavaDoc

Iterable操作の集大成

基本の出力形式

staticメソッド

返り値 FluentIterable<E>

メソッド

返り値 boolean

返り値 FluentIterable<E>

cycleとlimitの組み合わせ

Iterable iterable=FluentIterable.from(Lists.newArrayList("hello","world")).cycle().limit(10);
        Iterator it=iterable.iterator();
        while(it.hasNext()){
            LogUtils.log(it.next());
        }

返り値 E

返り値 Optional<E>

返り値 int

返り値 String

返り値 E[]

返り値 ImmutableList<E>

返り値 ImmutableMap<E,V>

Map<String,Object> strings=FluentIterable.from(Lists.newArrayList("hello","world")).toMap( Functions.identity());
Map<String,String> strings2=FluentIterable.from(Lists.newArrayList("hello","world")).toMap( Functions.toStringFunction());

返り値 ImmutableMap<K,E>

返り値 ImmutableSet<E>

返り値 ImmutableSortedSet<E>

返り値 <K> ImmutableListMultimap<K,E>

返り値 <C extends Collection<? super E>>

返り値 FluentIterable<T>