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
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 Details
-
Constructor Details
-
MutableStackFactoryImpl
public MutableStackFactoryImpl()
-
-
Method Details
-
empty
- Specified by:
empty
in interfaceMutableStackFactory
-
with
- Specified by:
with
in interfaceMutableStackFactory
-
withAll
- Specified by:
withAll
in interfaceMutableStackFactory
-
fromStream
- Specified by:
fromStream
in interfaceMutableStackFactory
-
withReversed
- Specified by:
withReversed
in interfaceMutableStackFactory
-
withAllReversed
- Specified by:
withAllReversed
in interfaceMutableStackFactory
-