Package io.vavr
Interface ValueModule
interface ValueModule
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <T,
R extends Collection<T>>
RtoJavaCollection
(Value<T> value, Function<Integer, R> containerSupplier) static <T,
R extends Collection<T>>
RtoJavaCollection
(Value<T> value, Function<Integer, R> containerSupplier, int defaultInitialCapacity) toMap
(Value<T> value, R empty, Function<E, R> ofElement, Function<Iterable<E>, R> ofAll, Function<? super T, ? extends E> f) static <T,
R extends Traversable<T>>
RtoTraversable
(Value<T> value, R empty, Function<T, R> ofElement, Function<Iterable<T>, R> ofAll)
-
Method Details
-
toTraversable
static <T,R extends Traversable<T>> R toTraversable(Value<T> value, R empty, Function<T, R> ofElement, Function<Iterable<T>, R> ofAll) -
toMap
-
toJavaCollection
static <T,R extends Collection<T>> R toJavaCollection(Value<T> value, Function<Integer, R> containerSupplier) -
toJavaCollection
static <T,R extends Collection<T>> R toJavaCollection(Value<T> value, Function<Integer, R> containerSupplier, int defaultInitialCapacity)
-