public abstract class Folds extends Object
| Modifier and Type | Method and Description |
|---|---|
static <R,V extends Enum<V>> |
asEnumSetFold(Class<V> enumType,
com.google.common.base.Function<R,? extends Collection<? extends V>> valueTransformation) |
static <R,V> Foldleft<R,Iterable<? extends V>> |
asIterableFold(com.google.common.base.Function<R,? extends Iterable<? extends V>> valueTransformation) |
static <R,V> Foldleft<R,com.google.common.collect.ImmutableList<? extends V>> |
asListFold(com.google.common.base.Function<R,? extends Collection<? extends V>> valueTransformation) |
static <R,V> Foldleft<R,com.google.common.collect.ImmutableSet<? extends V>> |
asSetFold(com.google.common.base.Function<R,? extends Collection<? extends V>> valueTransformation) |
static <S,D> D |
foldLeft(Iterable<? extends S> collection,
Foldleft<? super S,D> foldFunction,
D leftValue) |
public static <S,D> D foldLeft(Iterable<? extends S> collection, Foldleft<? super S,D> foldFunction, D leftValue)
public static <R,V> Foldleft<R,com.google.common.collect.ImmutableList<? extends V>> asListFold(com.google.common.base.Function<R,? extends Collection<? extends V>> valueTransformation)
public static <R,V> Foldleft<R,com.google.common.collect.ImmutableSet<? extends V>> asSetFold(com.google.common.base.Function<R,? extends Collection<? extends V>> valueTransformation)
public static <R,V extends Enum<V>> Foldleft<R,EnumSet<V>> asEnumSetFold(Class<V> enumType, com.google.common.base.Function<R,? extends Collection<? extends V>> valueTransformation)
Copyright © 2016. All rights reserved.