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
Internal API. Use at your own peril.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
private static final class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ImmutableQueue
<A> concat
(ImmutableQueue<A> other) static <A> ImmutableQueue
<A> empty()
head()
final boolean
isEmpty()
iterator()
abstract ImmutableQueue
<A> abstract ImmutableQueue
<A> static <A> ImmutableQueue
<A> singleton
(A a) abstract ImmutableQueue
<A> tail()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator