public class Inlist<T extends Inlist<T>>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Inlist.List<T extends Inlist<?>> |
| Constructor and Description |
|---|
Inlist() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Inlist<?>> |
appendItem(T list,
T item)
Append 'item' to 'list'.
|
static <T extends Inlist> |
appendList(T list,
T other)
Append list 'other' to 'list'.
|
static <T extends Inlist<?>> |
get(T list,
int i)
Gets the 'item' with index 'i'.
|
static <T extends Inlist<?>> |
last(T list)
Get last item in from list.
|
T |
next() |
static <T extends Inlist<?>> |
prependRelative(T list,
T item,
T other)
Prepend 'item' relative to 'other'.
|
static <T extends Inlist<?>> |
push(T list,
T item)
Push 'item' onto 'list'.
|
static <T extends Inlist<?>> |
remove(T list,
T item)
Removes the 'item' from 'list'.
|
static <T extends Inlist<?>> |
size(T list)
Get size of 'list'.
|
public T next()
@CheckReturnValue public static <T extends Inlist<?>> T push(T list, T item)
list - the listitem - the itempublic static <T extends Inlist<?>> int size(T list)
list - the list@CheckReturnValue public static <T extends Inlist<?>> T remove(T list, T item)
list - the listitem - the item@CheckReturnValue public static <T extends Inlist<?>> T get(T list, int i)
list - the listi - the index@CheckReturnValue public static <T extends Inlist<?>> T appendItem(T list, T item)
list - the listitem - the item@CheckReturnValue public static <T extends Inlist> T appendList(T list, T other)
list - the listother - the other@CheckReturnValue public static <T extends Inlist<?>> T last(T list)
list - the list@CheckReturnValue public static <T extends Inlist<?>> T prependRelative(T list, T item, T other)
list - the listitem - the itemother - the other list