Class ImmutableStack<A>
java.lang.Object
com.jnape.palatable.lambda.internal.ImmutableStack<A>
- All Implemented Interfaces:
Iterable<A>
- Direct Known Subclasses:
ImmutableStack.Empty, ImmutableStack.Node
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classprivate static final class -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
ImmutableStack
public ImmutableStack()
-
-
Method Details
-
push
-
head
-
tail
-
isEmpty
public final boolean isEmpty() -
iterator
-
empty
-