| Constructor and Description |
|---|
ImmutableStack() |
ImmutableStack(T head,
ImmutableStack<T> tail) |
| Modifier and Type | Method and Description |
|---|---|
static <T> ImmutableStack<T> |
create(T t) |
static <S> ImmutableStack<S> |
empty() |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
T |
peek() |
ImmutableStack<T> |
pop() |
ImmutableStack<T> |
push(T value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic ImmutableStack(T head, ImmutableStack<T> tail)
public ImmutableStack()
public static <T> ImmutableStack<T> create(T t)
public static <S> ImmutableStack<S> empty()
public boolean isEmpty()
public T peek()
public ImmutableStack<T> pop()
public ImmutableStack<T> push(T value)
Copyright © 2013–2023. All rights reserved.