Class FixedSizeSetFactoryImpl
- java.lang.Object
-
- org.eclipse.collections.impl.set.fixed.FixedSizeSetFactoryImpl
-
- All Implemented Interfaces:
FixedSizeSetFactory
public class FixedSizeSetFactoryImpl extends java.lang.Object implements FixedSizeSetFactory
-
-
Field Summary
Fields Modifier and Type Field Description private static FixedSizeSet<?>
EMPTY_SET
static FixedSizeSetFactory
INSTANCE
-
Constructor Summary
Constructors Constructor Description FixedSizeSetFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> FixedSizeSet<T>
empty()
<T> MutableSet<T>
fromStream(java.util.stream.Stream<? extends T> stream)
<T> FixedSizeSet<T>
of()
Same asFixedSizeSetFactory.empty()
.<T> FixedSizeSet<T>
of(T one)
Same asFixedSizeSetFactory.with(Object)
.<T> FixedSizeSet<T>
of(T one, T two)
<T> FixedSizeSet<T>
of(T one, T two, T three)
<T> FixedSizeSet<T>
of(T one, T two, T three, T four)
<T> MutableSet<T>
ofAll(java.lang.Iterable<? extends T> items)
<T> FixedSizeSet<T>
with()
Same asFixedSizeSetFactory.empty()
.<T> FixedSizeSet<T>
with(T one)
<T> FixedSizeSet<T>
with(T one, T two)
<T> FixedSizeSet<T>
with(T one, T two, T three)
<T> FixedSizeSet<T>
with(T one, T two, T three, T four)
<T> MutableSet<T>
withAll(java.lang.Iterable<? extends T> items)
-
-
-
Field Detail
-
INSTANCE
public static final FixedSizeSetFactory INSTANCE
-
EMPTY_SET
private static final FixedSizeSet<?> EMPTY_SET
-
-
Method Detail
-
empty
public <T> FixedSizeSet<T> empty()
- Specified by:
empty
in interfaceFixedSizeSetFactory
-
of
public <T> FixedSizeSet<T> of()
Description copied from interface:FixedSizeSetFactory
Same asFixedSizeSetFactory.empty()
.- Specified by:
of
in interfaceFixedSizeSetFactory
-
with
public <T> FixedSizeSet<T> with()
Description copied from interface:FixedSizeSetFactory
Same asFixedSizeSetFactory.empty()
.- Specified by:
with
in interfaceFixedSizeSetFactory
-
of
public <T> FixedSizeSet<T> of(T one)
Description copied from interface:FixedSizeSetFactory
Same asFixedSizeSetFactory.with(Object)
.- Specified by:
of
in interfaceFixedSizeSetFactory
-
with
public <T> FixedSizeSet<T> with(T one)
- Specified by:
with
in interfaceFixedSizeSetFactory
-
of
public <T> FixedSizeSet<T> of(T one, T two)
Description copied from interface:FixedSizeSetFactory
- Specified by:
of
in interfaceFixedSizeSetFactory
-
with
public <T> FixedSizeSet<T> with(T one, T two)
- Specified by:
with
in interfaceFixedSizeSetFactory
-
of
public <T> FixedSizeSet<T> of(T one, T two, T three)
Description copied from interface:FixedSizeSetFactory
- Specified by:
of
in interfaceFixedSizeSetFactory
-
with
public <T> FixedSizeSet<T> with(T one, T two, T three)
- Specified by:
with
in interfaceFixedSizeSetFactory
-
of
public <T> FixedSizeSet<T> of(T one, T two, T three, T four)
Description copied from interface:FixedSizeSetFactory
- Specified by:
of
in interfaceFixedSizeSetFactory
-
with
public <T> FixedSizeSet<T> with(T one, T two, T three, T four)
- Specified by:
with
in interfaceFixedSizeSetFactory
-
ofAll
public <T> MutableSet<T> ofAll(java.lang.Iterable<? extends T> items)
Description copied from interface:FixedSizeSetFactory
- Specified by:
ofAll
in interfaceFixedSizeSetFactory
-
withAll
public <T> MutableSet<T> withAll(java.lang.Iterable<? extends T> items)
- Specified by:
withAll
in interfaceFixedSizeSetFactory
-
fromStream
public <T> MutableSet<T> fromStream(java.util.stream.Stream<? extends T> stream)
- Specified by:
fromStream
in interfaceFixedSizeSetFactory
-
-