-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface WeightCombiner
Binary operator for edge weights. There are some prewritten operators.
-
-
Field Summary
Fields Modifier and Type Field Description static WeightCombiner
FIRST
First weight.static WeightCombiner
MAX
Maximum weight.static WeightCombiner
MIN
Minimum weight.static WeightCombiner
MULT
Multiplication of weights.static WeightCombiner
SECOND
Second weight.static WeightCombiner
SUM
Sum of weights.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
combine(double a, double b)
Combines two weights.
-
-
-
Field Detail
-
SUM
static final WeightCombiner SUM
Sum of weights.
-
MULT
static final WeightCombiner MULT
Multiplication of weights.
-
MIN
static final WeightCombiner MIN
Minimum weight.
-
MAX
static final WeightCombiner MAX
Maximum weight.
-
FIRST
static final WeightCombiner FIRST
First weight.
-
SECOND
static final WeightCombiner SECOND
Second weight.
-
-