com.pawjaw.utils
Class SortedPairs
java.lang.Object
com.pawjaw.utils.SortedPairs
- All Implemented Interfaces:
- java.lang.Iterable<double[]>, java.util.Iterator<double[]>
public class SortedPairs
- extends java.lang.Object
- implements java.lang.Iterable<double[]>, java.util.Iterator<double[]>
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SortedPairs
public SortedPairs(int n)
add
public void add(double[] element)
size
public int size()
sortDescending
public SortedPairs sortDescending()
sortAscending
public SortedPairs sortAscending()
get
public double[] get(int p)
first
public double[] first()
last
public double[] last()
next
public double[] next()
- Specified by:
next
in interface java.util.Iterator<double[]>
reset
public void reset()
increment
public void increment(int pi)
iterator
public java.util.Iterator<double[]> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<double[]>
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator<double[]>
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator<double[]>