LongGene
instead. This classes
uses the JScience library, which will be removed in the
next major version.@Deprecated public final class Integer64Gene extends NumberGene<Integer64,Integer64Gene>
Modifier and Type | Field and Description |
---|---|
static Function<Integer64Gene,Integer64> |
Allele
Deprecated.
Converter for accessing the value from a given number gene.
|
static Function<Integer64Gene,Integer64> |
Max
Deprecated.
Converter for accessing the allowed minimum from a given number gene.
|
static Function<Integer64Gene,Integer64> |
Min
Deprecated.
Converter for accessing the allowed minimum from a given number gene.
|
static Function<Integer64Gene,Integer64> |
Value
Deprecated.
Converter for accessing the allele from a given number gene.
|
_max, _min, _value
Modifier and Type | Method and Description |
---|---|
protected Integer64 |
box(Number value)
Deprecated.
Boxes a given Java number into the required number object.
|
Integer64Gene |
divide(Integer64Gene gene)
Deprecated.
|
Integer64Gene |
mean(Integer64Gene that)
Deprecated.
Return the (usually arithmetic) mean value of
this and
that . |
Integer64Gene |
newInstance()
Deprecated.
Create a new valid, random gene.
|
Integer64Gene |
newInstance(Integer64 value)
Deprecated.
Create a new gene from the given
value . |
Integer64Gene |
newInstance(long value)
Deprecated.
Create a new
Integer64Gene with the same limits and the given
value. |
static Integer64Gene |
valueOf(Integer64 min,
Integer64 max)
Deprecated.
Create a new random
Integer64Gene . |
static Integer64Gene |
valueOf(Integer64 value,
Integer64 min,
Integer64 max)
Deprecated.
Create a new random
Integer64Gene with the given value and the
given range. |
static Integer64Gene |
valueOf(long min,
long max)
Deprecated.
Create a new random
Integer64Gene . |
static Integer64Gene |
valueOf(long value,
long min,
long max)
Deprecated.
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, toText
byteValue, floatValue, intValue, isGreaterThan, isLessThan, minus, pow, shortValue, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
byteValue, floatValue, intValue, shortValue
public 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)
NumberGene
box
in class NumberGene<Integer64,Integer64Gene>
value
- the Java number to box.public Integer64Gene divide(Integer64Gene gene)
public Integer64Gene mean(Integer64Gene that)
Mean
this
and
that
. For NumberGene
s 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)
NumberGene
value
.newInstance
in interface BoundedGene<Integer64,Integer64Gene>
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-2014 Franz Wilhelmstötter (2014-03-07 19:35)