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