|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use ConsList | |
|---|---|
| edu.rice.cs.plt.collect | Contains general-purpose extensions to and variations on the java.util collections
framework. |
| Uses of ConsList in edu.rice.cs.plt.collect |
|---|
| Subclasses of ConsList in edu.rice.cs.plt.collect | |
|---|---|
static class |
ConsList.Empty<T>
The empty variant of a ConsList. |
static class |
ConsList.Nonempty<T>
The nonempty variant of a ConsList. |
| Methods in edu.rice.cs.plt.collect that return ConsList | ||
|---|---|---|
static
|
ConsList.append(ConsList<? extends T> l1,
ConsList<? extends T> l2)
Append l2 to the end of l1 |
|
static
|
ConsList.filter(ConsList<? extends T> list,
Predicate<? super T> pred)
Filter the given list according to a predicate |
|
static
|
CollectUtil.makeConsList(Iterable<? extends T> iter)
Make a ConsList with the given elements. |
|
static
|
ConsList.map(ConsList<? extends S> list,
Lambda<? super S,? extends T> lambda)
Map the given list according to a lambda |
|
ConsList<? extends T> |
ConsList.Nonempty.rest()
|
|
static
|
ConsList.rest(ConsList<? extends T> list)
Attempt to access the rest of the given list (throws an exception in the empty case). |
|
static
|
ConsList.reverse(ConsList<? extends T> list)
Reverse the given list |
|
| Methods in edu.rice.cs.plt.collect that return types with arguments of type ConsList | ||
|---|---|---|
static
|
ConsVisitor.append(ConsList<? extends T> rest)
Appends the given list to the end of another list |
|
static
|
ConsVisitor.filter(Predicate<? super T> pred)
Filters a list to contain only those elements accepted by the given predicate |
|
static
|
ConsVisitor.map(Lambda<? super S,? extends T> lambda)
Produces a new list by applying the given lambda to each of a list's elements |
|
static
|
ConsVisitor.rest()
Attempt to access the rest of the given list (throws an exception in the empty case). |
|
static
|
ConsVisitor.reverse()
Reverses the order of the elements in a list |
|
| Methods in edu.rice.cs.plt.collect with parameters of type ConsList | ||
|---|---|---|
static
|
ConsVisitor.append(ConsList<? extends T> rest)
Appends the given list to the end of another list |
|
static
|
ConsList.append(ConsList<? extends T> l1,
ConsList<? extends T> l2)
Append l2 to the end of l1 |
|
static
|
ConsList.append(ConsList<? extends T> l1,
ConsList<? extends T> l2)
Append l2 to the end of l1 |
|
static
|
ConsList.cons(T first,
ConsList<? extends T> rest)
Create a nonempty list (via ConsList()) |
|
static
|
ConsList.filter(ConsList<? extends T> list,
Predicate<? super T> pred)
Filter the given list according to a predicate |
|
static
|
ConsList.first(ConsList<? extends T> list)
Attempt to access the first of the given list (throws an exception in the empty case). |
|
abstract Ret |
ConsVisitor.forNonempty(T first,
ConsList<? extends T> rest)
Handle a nonempty list |
|
static
|
ConsList.map(ConsList<? extends S> list,
Lambda<? super S,? extends T> lambda)
Map the given list according to a lambda |
|
static
|
ConsList.rest(ConsList<? extends T> list)
Attempt to access the rest of the given list (throws an exception in the empty case). |
|
static
|
ConsList.reverse(ConsList<? extends T> list)
Reverse the given list |
|
Ret |
ConsVisitor.value(ConsList<? extends T> list)
Invoke list.apply(this) |
|
| Constructors in edu.rice.cs.plt.collect with parameters of type ConsList | |
|---|---|
ConsList.Nonempty(T first,
ConsList<? extends T> rest)
|
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||