Class MutableStackFactoryImpl
- java.lang.Object
-
- org.eclipse.collections.impl.stack.mutable.MutableStackFactoryImpl
-
- All Implemented Interfaces:
MutableStackFactory
public class MutableStackFactoryImpl extends Object implements MutableStackFactory
-
-
Field Summary
Fields Modifier and Type Field Description static MutableStackFactory
INSTANCE
-
Constructor Summary
Constructors Constructor Description MutableStackFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> MutableStack<T>
empty()
<T> MutableStack<T>
fromStream(Stream<? extends T> stream)
<T> MutableStack<T>
with(T... elements)
<T> MutableStack<T>
withAll(Iterable<? extends T> elements)
<T> MutableStack<T>
withAllReversed(Iterable<? extends T> items)
<T> MutableStack<T>
withReversed(T... elements)
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.collections.api.factory.stack.MutableStackFactory
of, of, ofAll, ofAllReversed, ofReversed, with
-
-
-
-
Field Detail
-
INSTANCE
public static final MutableStackFactory INSTANCE
-
-
Method Detail
-
empty
public <T> MutableStack<T> empty()
- Specified by:
empty
in interfaceMutableStackFactory
-
with
public <T> MutableStack<T> with(T... elements)
- Specified by:
with
in interfaceMutableStackFactory
-
withAll
public <T> MutableStack<T> withAll(Iterable<? extends T> elements)
- Specified by:
withAll
in interfaceMutableStackFactory
-
fromStream
public <T> MutableStack<T> fromStream(Stream<? extends T> stream)
- Specified by:
fromStream
in interfaceMutableStackFactory
-
withReversed
public <T> MutableStack<T> withReversed(T... elements)
- Specified by:
withReversed
in interfaceMutableStackFactory
-
withAllReversed
public <T> MutableStack<T> withAllReversed(Iterable<? extends T> items)
- Specified by:
withAllReversed
in interfaceMutableStackFactory
-
-