Serializable
, Comparable<MultiReaderMutableBagFactory>
, MultiReaderBagFactory
public enum MultiReaderMutableBagFactory extends Enum<MultiReaderMutableBagFactory> implements MultiReaderBagFactory
Enum Constant | Description |
---|---|
INSTANCE |
Modifier and Type | Method | Description |
---|---|---|
<T> MultiReaderBag<T> |
empty() |
|
<T> MultiReaderBag<T> |
fromStream(Stream<? extends T> stream) |
|
static MultiReaderMutableBagFactory |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static MultiReaderMutableBagFactory[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
<T> MultiReaderBag<T> |
with(T... items) |
|
<T> MultiReaderBag<T> |
withAll(Iterable<? extends T> iterable) |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
of, of, ofAll, with
public static final MultiReaderMutableBagFactory INSTANCE
public static MultiReaderMutableBagFactory[] values()
for (MultiReaderMutableBagFactory c : MultiReaderMutableBagFactory.values()) System.out.println(c);
public static MultiReaderMutableBagFactory valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic <T> MultiReaderBag<T> empty()
empty
in interface MultiReaderBagFactory
public <T> MultiReaderBag<T> with(T... items)
with
in interface MultiReaderBagFactory
public <T> MultiReaderBag<T> withAll(Iterable<? extends T> iterable)
withAll
in interface MultiReaderBagFactory
public <T> MultiReaderBag<T> fromStream(Stream<? extends T> stream)
fromStream
in interface MultiReaderBagFactory
Copyright © 2004–2019. All rights reserved.