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 MutableStackFactoryINSTANCE
-
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:
emptyin interfaceMutableStackFactory
-
with
public <T> MutableStack<T> with(T... elements)
- Specified by:
within interfaceMutableStackFactory
-
withAll
public <T> MutableStack<T> withAll(Iterable<? extends T> elements)
- Specified by:
withAllin interfaceMutableStackFactory
-
fromStream
public <T> MutableStack<T> fromStream(Stream<? extends T> stream)
- Specified by:
fromStreamin interfaceMutableStackFactory
-
withReversed
public <T> MutableStack<T> withReversed(T... elements)
- Specified by:
withReversedin interfaceMutableStackFactory
-
withAllReversed
public <T> MutableStack<T> withAllReversed(Iterable<? extends T> items)
- Specified by:
withAllReversedin interfaceMutableStackFactory
-
-