| Methods in com.tensegrity.generic.util that return ArrayListFloat.ListIterator |
ArrayListFloat.ListIterator |
ArrayListFloat.listIterator()
Returns a simple forward iterator to the caller which
can be used to retrieve the contents of the arraylist
like this:
ArrayListFloat.ListIterator it = alist.listIterator();
while (it.hasNext()) {
float l = li.next ();
System.out.println (" : " + l);
}
Additionally the list iterator is capable of backwards iteration
using the methods @see previous and @see hasPrevious |
ArrayListFloat.ListIterator |
ArrayListFloat.listIterator(int index)
Returns a simple forward iterator with user-specified
starting position which
can be used to retrieve the contents of the arraylist
in reverse order like this:
ArrayListFloat.ListIterator it = alist.listIterator(alist.size());
while (it.hasPrevious()) {
float l = li.previous ();
System.out.println (" : " + l);
}
Additionally the list iterator is capable of backwards iteration
using the methods @see previous and @see hasPrevious |