java.lang.Object
com.iamsoft.util.ui.javafx.conflation.DuplicatePointConflater<X,Y>
- Type Parameters:
X
- X-axis datatype.
Y
- Y-axis datatype.
- All Implemented Interfaces:
BiFunction<X,Y,javafx.collections.ListChangeListener.Change<javafx.util.Pair<X,Y>>>
public class DuplicatePointConflater<X,Y>
extends Object
implements BiFunction<X,Y,javafx.collections.ListChangeListener.Change<javafx.util.Pair<X,Y>>>
If new point is the same as previous two, replace last point with new one.
-
Constructor Summary
Constructors
-
Method Summary
javafx.collections.ListChangeListener.Change<javafx.util.Pair<X,Y>>
static <X,
Y> javafx.collections.ListChangeListener.Change<javafx.util.Pair<X,Y>>
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
DuplicatePointConflater
public DuplicatePointConflater(List<javafx.util.Pair<X,Y>> pList)
-
Method Details
-
apply
public javafx.collections.ListChangeListener.Change<javafx.util.Pair<X,Y>> apply(X pX,
Y pY)
- Specified by:
apply
in interface BiFunction<X,Y,javafx.collections.ListChangeListener.Change<javafx.util.Pair<X,Y>>>
-
getChange
public static <X,
Y>
javafx.collections.ListChangeListener.Change<javafx.util.Pair<X,Y>> getChange(List<javafx.util.Pair<X,Y>> pList,
X pX,
Y pY)