Enum MultiReaderMutableSetFactory
java.lang.Object
java.lang.Enum<MultiReaderMutableSetFactory>
org.eclipse.collections.impl.set.mutable.MultiReaderMutableSetFactory
- All Implemented Interfaces:
Serializable
,Comparable<MultiReaderMutableSetFactory>
,java.lang.constant.Constable
,MultiReaderSetFactory
public enum MultiReaderMutableSetFactory extends Enum<MultiReaderMutableSetFactory> implements MultiReaderSetFactory
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
Modifier and Type Method Description <T> MultiReaderSet<T>
empty()
<T> MultiReaderSet<T>
fromStream(Stream<? extends T> stream)
static MultiReaderMutableSetFactory
valueOf(String name)
Returns the enum constant of this type with the specified name.static MultiReaderMutableSetFactory[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.<T> MultiReaderSet<T>
with(T... items)
<T> MultiReaderSet<T>
withAll(Iterable<? extends T> iterable)
<T> MultiReaderSet<T>
withInitialCapacity(int capacity)
Same asMultiReaderSetFactory.empty()
.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface org.eclipse.collections.api.factory.set.MultiReaderSetFactory
of, of, ofAll, ofInitialCapacity, with
-
Enum Constant Details
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
empty
- Specified by:
empty
in interfaceMultiReaderSetFactory
-
with
- Specified by:
with
in interfaceMultiReaderSetFactory
-
withInitialCapacity
Description copied from interface:MultiReaderSetFactory
Same asMultiReaderSetFactory.empty()
. but takes in initial capacity.- Specified by:
withInitialCapacity
in interfaceMultiReaderSetFactory
-
withAll
- Specified by:
withAll
in interfaceMultiReaderSetFactory
-
fromStream
- Specified by:
fromStream
in interfaceMultiReaderSetFactory
-