public final class Integer64Gene extends NumberGene<Integer64,Integer64Gene>
| Modifier and Type | Field and Description |
|---|---|
static Function<Integer64Gene,Integer64> |
Allele
Converter for accessing the value from a given number gene.
|
static Function<Integer64Gene,Integer64> |
Max
Converter for accessing the allowed minimum from a given number gene.
|
static Function<Integer64Gene,Integer64> |
Min
Converter for accessing the allowed minimum from a given number gene.
|
static Function<Integer64Gene,Integer64> |
Value
Converter for accessing the allele from a given number gene.
|
_max, _min, _value| Modifier and Type | Method and Description |
|---|---|
protected Integer64 |
box(Number value)
Boxes a given Java number into the required number object.
|
Integer64Gene |
divide(Integer64Gene gene) |
Integer64Gene |
mean(Integer64Gene that)
Return the (usually arithmetic) mean value of
this and
that. |
Integer64Gene |
newInstance()
Create a new valid, random gene.
|
Integer64Gene |
newInstance(Integer64 value)
Create a new gene from the given
value. |
Integer64Gene |
newInstance(long value)
Create a new
Integer64Gene with the same limits and the given
value. |
static Integer64Gene |
valueOf(Integer64 min,
Integer64 max)
Create a new random
Integer64Gene. |
static Integer64Gene |
valueOf(Integer64 value,
Integer64 min,
Integer64 max)
Create a new random
Integer64Gene with the given value and the
given range. |
static Integer64Gene |
valueOf(long min,
long max)
Create a new random
Integer64Gene. |
static Integer64Gene |
valueOf(long value,
long min,
long max)
Create a new random
Integer64Gene with the given value and the
given range. |
compareTo, copy, doubleValue, equals, getAllele, getMax, getMin, getNumber, hashCode, isLargerThan, isValid, longValue, newInstance, opposite, plus, set, times, toTextbyteValue, floatValue, intValue, isGreaterThan, isLessThan, minus, pow, shortValue, toStringpublic static final Function<Integer64Gene,Integer64> Allele
public static final Function<Integer64Gene,Integer64> Value
public static final Function<Integer64Gene,Integer64> Min
public static final Function<Integer64Gene,Integer64> Max
protected Integer64 box(Number value)
NumberGenebox in class NumberGene<Integer64,Integer64Gene>value - the Java number to box.public Integer64Gene divide(Integer64Gene gene)
public Integer64Gene mean(Integer64Gene that)
Meanthis and
that. For NumberGenes the mean is the
arithmetic mean.that - the second value for calculating the mean.this and that.public Integer64Gene newInstance()
public Integer64Gene newInstance(long value)
Integer64Gene with the same limits and the given
value.value - the value of the new NumberGene.NumberGene.public Integer64Gene newInstance(Integer64 value)
NumberGenevalue.newInstance in class NumberGene<Integer64,Integer64Gene>value - the value of the new gene.public static Integer64Gene valueOf(long value, long min, long max)
Integer64Gene with the given value and the
given range. If the value isn't within the closed interval
[min, max], no exception is thrown. In this case the method
NumberGene.isValid() returns false.value - the value of the gene.min - the minimal valid value of this gene (inclusively).max - the maximal valid value of this gene (inclusively).value.public static Integer64Gene valueOf(Integer64 value, Integer64 min, Integer64 max)
Integer64Gene with the given value and the
given range. If the value isn't within the closed interval
[min, max], no exception is thrown. In this case the method
NumberGene.isValid() returns false.value - the value of the gene.min - the minimal valid value of this gene (inclusively).max - the maximal valid value of this gene (inclusively).value.NullPointerException - if one of the arguments is null.public static Integer64Gene valueOf(long min, long max)
Integer64Gene. It is guaranteed that the
value of the Integer64Gene lies in the closed interval [min, max].min - the minimal value of the Integer64Gene to create
(inclusively).max - the maximal value of the Integer64Gene to create
(inclusively).public static Integer64Gene valueOf(Integer64 min, Integer64 max)
Integer64Gene. It is guaranteed that the
value of the Integer64Gene lies in the closed interval [min, max].min - the minimal value of the Integer64Gene to create
(inclusively).max - the maximal value of the Integer64Gene to create
(inclusively).NullPointerException - if one of the arguments is null.© 2007-2013 Franz Wilhelmstötter (2013-12-18 20:17)