public final class IntegerVectorSolution extends VectorSolution<java.lang.Integer>
Solution optimized for a vector of integers.
Modifier and Type | Field and Description |
---|---|
private int[] |
primitives |
private static long |
serialVersionUID |
evaluation, values
Constructor and Description |
---|
IntegerVectorSolution(int[] values) |
IntegerVectorSolution(int[] values,
double evaluation) |
IntegerVectorSolution(java.lang.Integer[] values,
double evaluation) |
Modifier and Type | Method and Description |
---|---|
IntegerVectorSolution |
cloneWithNewValue(io.vavr.collection.Array<java.lang.Integer> newValues) |
int[] |
valuesAsPrimitive() |
IntegerVectorSolution |
withEvaluation(double evaluation)
Updates the evaluation of this solution.
|
evaluationValue, length, toString, unwrap, values
private static final long serialVersionUID
private final int[] primitives
public IntegerVectorSolution(java.lang.Integer[] values, double evaluation)
public IntegerVectorSolution(int[] values, double evaluation)
public IntegerVectorSolution(int[] values)
public int[] valuesAsPrimitive()
public IntegerVectorSolution withEvaluation(double evaluation)
Solution
Updates the evaluation of this solution.
This function returns a new instance.
withEvaluation
in interface Solution<io.vavr.collection.Array<java.lang.Integer>>
withEvaluation
in class VectorSolution<java.lang.Integer>
evaluation
- new evaluation valuepublic IntegerVectorSolution cloneWithNewValue(io.vavr.collection.Array<java.lang.Integer> newValues)
cloneWithNewValue
in interface Solution<io.vavr.collection.Array<java.lang.Integer>>
cloneWithNewValue
in class VectorSolution<java.lang.Integer>