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