public class DisjointPairList extends it.unimi.dsi.fastutil.doubles.AbstractDoubleList implements PairList
it.unimi.dsi.fastutil.doubles.AbstractDoubleList.DoubleSubList
PairList.Consumer
Modifier and Type | Field and Description |
---|---|
private it.unimi.dsi.fastutil.doubles.DoubleList |
first |
private boolean |
inverted |
private it.unimi.dsi.fastutil.doubles.DoubleList |
second |
Constructor and Description |
---|
DisjointPairList(it.unimi.dsi.fastutil.doubles.DoubleList first,
it.unimi.dsi.fastutil.doubles.DoubleList second,
boolean inverted) |
Modifier and Type | Method and Description |
---|---|
boolean |
forEachPair(PairList.Consumer predicate) |
double |
getDouble(int position) |
it.unimi.dsi.fastutil.doubles.DoubleList |
getPairs() |
private boolean |
iterateSections(PairList.Consumer consumer) |
int |
size() |
add, add, addAll, addAll, addAll, addAll, addAll, addAll, addElements, addElements, clear, compareTo, contains, ensureIndex, ensureRestrictedIndex, equals, getElements, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, peekDouble, popDouble, push, rem, removeDouble, removeElements, set, size, subList, topDouble, toString
add, contains, containsAll, remove, removeAll, retainAll, toArray, toDoubleArray, toDoubleArray
containsAll, isEmpty, removeAll, retainAll, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, add, contains, get, indexOf, lastIndexOf, remove, remove, set
containsAll, isEmpty, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
containsAll, removeAll, removeIf, removeIf, retainAll, toArray, toDoubleArray, toDoubleArray
parallelStream, stream
private final it.unimi.dsi.fastutil.doubles.DoubleList first
private final it.unimi.dsi.fastutil.doubles.DoubleList second
private final boolean inverted
public DisjointPairList(it.unimi.dsi.fastutil.doubles.DoubleList first, it.unimi.dsi.fastutil.doubles.DoubleList second, boolean inverted)
public int size()
size
in interface Collection<Double>
size
in interface List<Double>
size
in class AbstractCollection<Double>
public boolean forEachPair(PairList.Consumer predicate)
forEachPair
in interface PairList
private boolean iterateSections(PairList.Consumer consumer)
public double getDouble(int position)
getDouble
in interface it.unimi.dsi.fastutil.doubles.DoubleList