Class ImmutableStackFactoryImpl
- java.lang.Object
-
- org.eclipse.collections.impl.stack.immutable.ImmutableStackFactoryImpl
-
- All Implemented Interfaces:
ImmutableStackFactory
public class ImmutableStackFactoryImpl extends java.lang.Object implements ImmutableStackFactory
-
-
Field Summary
Fields Modifier and Type Field Description static ImmutableStackFactory
INSTANCE
-
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()
Same asImmutableStackFactory.empty()
.<T> ImmutableStack<T>
of(T element)
Same asImmutableStackFactory.with(Object)
.<T> ImmutableStack<T>
of(T... elements)
Same asImmutableStackFactory.with(Object[])
.<T> ImmutableStack<T>
ofAll(java.lang.Iterable<? extends T> items)
<T> ImmutableStack<T>
ofAllReversed(java.lang.Iterable<? extends T> items)
<T> ImmutableStack<T>
ofReversed(T... elements)
<T> ImmutableStack<T>
with()
Same asImmutableStackFactory.empty()
.<T> ImmutableStack<T>
with(T element)
<T> ImmutableStack<T>
with(T... elements)
<T> ImmutableStack<T>
withAll(java.lang.Iterable<? extends T> items)
<T> ImmutableStack<T>
withAllReversed(java.lang.Iterable<? extends T> items)
<T> ImmutableStack<T>
withReversed(T... elements)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, 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:
empty
in interfaceImmutableStackFactory
-
of
public <T> ImmutableStack<T> of()
Description copied from interface:ImmutableStackFactory
Same asImmutableStackFactory.empty()
.- Specified by:
of
in interfaceImmutableStackFactory
-
with
public <T> ImmutableStack<T> with()
Description copied from interface:ImmutableStackFactory
Same asImmutableStackFactory.empty()
.- Specified by:
with
in interfaceImmutableStackFactory
-
of
public <T> ImmutableStack<T> of(T element)
Description copied from interface:ImmutableStackFactory
Same asImmutableStackFactory.with(Object)
.- Specified by:
of
in interfaceImmutableStackFactory
-
with
public <T> ImmutableStack<T> with(T element)
- Specified by:
with
in interfaceImmutableStackFactory
-
of
public <T> ImmutableStack<T> of(T... elements)
Description copied from interface:ImmutableStackFactory
Same asImmutableStackFactory.with(Object[])
.- Specified by:
of
in interfaceImmutableStackFactory
-
with
public <T> ImmutableStack<T> with(T... elements)
- Specified by:
with
in interfaceImmutableStackFactory
-
ofAll
public <T> ImmutableStack<T> ofAll(java.lang.Iterable<? extends T> items)
Description copied from interface:ImmutableStackFactory
- Specified by:
ofAll
in interfaceImmutableStackFactory
-
withAll
public <T> ImmutableStack<T> withAll(java.lang.Iterable<? extends T> items)
- Specified by:
withAll
in interfaceImmutableStackFactory
-
ofReversed
public <T> ImmutableStack<T> ofReversed(T... elements)
Description copied from interface:ImmutableStackFactory
- Specified by:
ofReversed
in interfaceImmutableStackFactory
-
withReversed
public <T> ImmutableStack<T> withReversed(T... elements)
- Specified by:
withReversed
in interfaceImmutableStackFactory
-
ofAllReversed
public <T> ImmutableStack<T> ofAllReversed(java.lang.Iterable<? extends T> items)
Description copied from interface:ImmutableStackFactory
- Specified by:
ofAllReversed
in interfaceImmutableStackFactory
-
withAllReversed
public <T> ImmutableStack<T> withAllReversed(java.lang.Iterable<? extends T> items)
- Specified by:
withAllReversed
in interfaceImmutableStackFactory
-
-