public class IntegerBounds extends java.lang.Object implements Bounds<java.lang.Integer>
IntegerBounds is an implementation of the Bounds for the
IntegerGenotype that accepts arrays as well as lists for as bounds.| Modifier and Type | Field and Description |
|---|---|
protected int[] |
lower |
protected int[] |
upper |
| Constructor and Description |
|---|
IntegerBounds(int[] lower,
int[] upper)
Constructs a
IntegerBounds with arrays. |
IntegerBounds(java.util.List<java.lang.Integer> lower,
java.util.List<java.lang.Integer> upper)
Constructs a
IntegerBounds with lists. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getLowerBound(int index)
Returns the lower bound for the
i-th element. |
java.lang.Integer |
getUpperBound(int index)
Returns the upper bound for the
i-th element. |
public IntegerBounds(int[] lower,
int[] upper)
IntegerBounds with arrays.lower - the lower boundsupper - the upper boundspublic IntegerBounds(java.util.List<java.lang.Integer> lower,
java.util.List<java.lang.Integer> upper)
IntegerBounds with lists.lower - the lower boundsupper - the upper boundspublic java.lang.Integer getLowerBound(int index)
Boundsi-th element.getLowerBound in interface Bounds<java.lang.Integer>index - the i-th elementi-th elementpublic java.lang.Integer getUpperBound(int index)
Boundsi-th element.getUpperBound in interface Bounds<java.lang.Integer>index - the i-th elementi-th element