Class ImmutableStackFactoryImpl
- java.lang.Object
-
- org.eclipse.collections.impl.stack.immutable.ImmutableStackFactoryImpl
-
- All Implemented Interfaces:
ImmutableStackFactory
public class ImmutableStackFactoryImpl extends Object implements ImmutableStackFactory
-
-
Field Summary
Fields Modifier and Type Field Description static ImmutableStackFactoryINSTANCE
-
Constructor Summary
Constructors Constructor Description ImmutableStackFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> ImmutableStack<T>empty()<T> ImmutableStack<T>of()<T> ImmutableStack<T>of(T element)<T> ImmutableStack<T>of(T... elements)<T> ImmutableStack<T>ofAll(Iterable<? extends T> items)<T> ImmutableStack<T>ofAllReversed(Iterable<? extends T> items)<T> ImmutableStack<T>ofReversed(T... elements)<T> ImmutableStack<T>with()<T> ImmutableStack<T>with(T element)<T> ImmutableStack<T>with(T... elements)<T> ImmutableStack<T>withAll(Iterable<? extends T> items)<T> ImmutableStack<T>withAllReversed(Iterable<? extends T> items)<T> ImmutableStack<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.ImmutableStackFactory
fromStream
-
-
-
-
Field Detail
-
INSTANCE
public static final ImmutableStackFactory INSTANCE
-
-
Method Detail
-
empty
public <T> ImmutableStack<T> empty()
- Specified by:
emptyin interfaceImmutableStackFactory
-
of
public <T> ImmutableStack<T> of()
- Specified by:
ofin interfaceImmutableStackFactory
-
with
public <T> ImmutableStack<T> with()
- Specified by:
within interfaceImmutableStackFactory
-
of
public <T> ImmutableStack<T> of(T element)
- Specified by:
ofin interfaceImmutableStackFactory
-
with
public <T> ImmutableStack<T> with(T element)
- Specified by:
within interfaceImmutableStackFactory
-
of
public <T> ImmutableStack<T> of(T... elements)
- Specified by:
ofin interfaceImmutableStackFactory
-
with
public <T> ImmutableStack<T> with(T... elements)
- Specified by:
within interfaceImmutableStackFactory
-
ofAll
public <T> ImmutableStack<T> ofAll(Iterable<? extends T> items)
- Specified by:
ofAllin interfaceImmutableStackFactory
-
withAll
public <T> ImmutableStack<T> withAll(Iterable<? extends T> items)
- Specified by:
withAllin interfaceImmutableStackFactory
-
ofReversed
public <T> ImmutableStack<T> ofReversed(T... elements)
- Specified by:
ofReversedin interfaceImmutableStackFactory
-
withReversed
public <T> ImmutableStack<T> withReversed(T... elements)
- Specified by:
withReversedin interfaceImmutableStackFactory
-
ofAllReversed
public <T> ImmutableStack<T> ofAllReversed(Iterable<? extends T> items)
- Specified by:
ofAllReversedin interfaceImmutableStackFactory
-
withAllReversed
public <T> ImmutableStack<T> withAllReversed(Iterable<? extends T> items)
- Specified by:
withAllReversedin interfaceImmutableStackFactory
-
-