|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jga.algorithms.Reverse
public class Reverse
Reverses the order of the input
Copyright © 2007 David A. Hall
Nested Class Summary | |
---|---|
static class |
Reverse.ReverseArrayIterable<T>
|
static class |
Reverse.ReverseIterable<T>
|
static class |
Reverse.ReverseIterator<T>
|
Constructor Summary | |
---|---|
Reverse()
|
Method Summary | ||
---|---|---|
static
|
reverse(java.lang.Iterable<? extends T> i,
TCollection co)
Appends the reversed contents of the input to the output. |
|
static
|
reverse(java.lang.Iterable<T> i)
Returns an iterable object over the reversed contents of the input. |
|
static
|
reverse(java.util.Iterator<T> i)
Returns an iterator object over the reversed contents of the input. |
|
static
|
reverse(T[] ts)
Returns an iterable object over the reversed contents of the array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Reverse()
Method Detail |
---|
public static <T> java.lang.Iterable<T> reverse(T[] ts)
public static <T> java.lang.Iterable<T> reverse(java.lang.Iterable<T> i)
public static <T> java.util.Iterator<T> reverse(java.util.Iterator<T> i)
public static <T,TCollection extends java.util.Collection<? super T>> TCollection reverse(java.lang.Iterable<? extends T> i, TCollection co)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |