IFV.java
438 Bytes
package is2.data;
public abstract class IFV {
// public double score=0;
public abstract void add(int i);
public abstract double getScore();
public abstract void clear();
@Override
public abstract IFV clone();
/**
* @param gvs
* @param li
*/
public void add(long[] gvs, Long2IntInterface li, int l) {
for (long gv : gvs) {
if (gv == Integer.MIN_VALUE)
break;
if (gv > 0)
add(li.l2i(gv + l));
}
}
}