public final class ListLiteral
extends jfun.util.List
Constructor and Description |
---|
ListLiteral(int from,
int end,
java.lang.Object[] arr)
To create a ListLiteral object.
|
ListLiteral(int from,
java.lang.Object[] arr)
To create a ListLiteral object.
|
ListLiteral(java.lang.Object[] arr)
To create a ListLiteral object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
head() |
boolean |
isEmpty() |
jfun.util.List |
rev() |
jfun.util.List |
revAppend(jfun.util.List l) |
java.lang.Object[] |
revArray(int ind,
java.lang.Object[] buf) |
int |
size() |
jfun.util.List |
tail() |
java.lang.Object[] |
toArray(int ind,
java.lang.Object[] buf) |
void |
toList(java.util.List to) |
java.lang.String |
toString() |
public ListLiteral(java.lang.Object[] arr)
arr
- the array object backing the list.public ListLiteral(int from, java.lang.Object[] arr)
from
- the starting index in the array.arr
- the array object backing the list.public ListLiteral(int from, int end, java.lang.Object[] arr)
from
- the starting index in the array.end
- the ending index in the array, exclusive.arr
- the array object backing the list.public boolean isEmpty()
isEmpty
in interface jfun.util.Sizeable
isEmpty
in class jfun.util.List
public java.lang.Object head()
head
in class jfun.util.List
public jfun.util.List tail()
tail
in class jfun.util.List
public jfun.util.List rev()
rev
in class jfun.util.List
public jfun.util.List revAppend(jfun.util.List l)
revAppend
in class jfun.util.List
public int size()
size
in interface jfun.util.Sizeable
size
in class jfun.util.List
public java.lang.Object[] revArray(int ind, java.lang.Object[] buf)
revArray
in class jfun.util.List
public java.lang.Object[] toArray(int ind, java.lang.Object[] buf)
toArray
in class jfun.util.List
public void toList(java.util.List to)
toList
in class jfun.util.List
public java.lang.String toString()
toString
in class jfun.util.List