Class ImmutableStack.Empty<A>
- java.lang.Object
-
- com.jnape.palatable.lambda.internal.ImmutableStack<A>
-
- com.jnape.palatable.lambda.internal.ImmutableStack.Empty<A>
-
- All Implemented Interfaces:
java.lang.Iterable<A>
- Enclosing class:
- ImmutableStack<A>
private static final class ImmutableStack.Empty<A> extends ImmutableStack<A>
-
-
Field Summary
Fields Modifier and Type Field Description private static ImmutableStack.Empty<?>
INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
Empty()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Maybe<A>
head()
ImmutableStack<A>
tail()
-
Methods inherited from class com.jnape.palatable.lambda.internal.ImmutableStack
empty, isEmpty, iterator, push
-
-
-
-
Field Detail
-
INSTANCE
private static final ImmutableStack.Empty<?> INSTANCE
-
-
Method Detail
-
head
public Maybe<A> head()
- Specified by:
head
in classImmutableStack<A>
-
tail
public ImmutableStack<A> tail()
- Specified by:
tail
in classImmutableStack<A>
-
-