public enum BitGene extends Enum<BitGene> implements Gene<Boolean,BitGene>, Comparable<BitGene>
BitChromosome
Modifier and Type | Method and Description |
---|---|
boolean |
bit()
Return the value of the BitGene.
|
boolean |
booleanValue()
Return the
boolean value of this gene. |
Boolean |
getAllele()
Deprecated.
|
boolean |
getBit()
Deprecated.
Use
bit() instead |
boolean |
isValid()
Return always
true . |
BitGene |
newInstance()
Create a new, random gene.
|
BitGene |
newInstance(Boolean value)
Create a new gene from the given
value .. |
static BitGene |
of(boolean value)
Return the corresponding
BitGene for the given boolean
value. |
String |
toString() |
static BitGene |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BitGene[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
compareTo
public static BitGene[] values()
for (BitGene c : BitGene.values()) System.out.println(c);
public static BitGene valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final boolean bit()
@Deprecated public final boolean getBit()
bit()
insteadpublic boolean booleanValue()
boolean
value of this gene.boolean
value of this gene.Gene.allele()
@Deprecated public Boolean getAllele()
Gene
public boolean isValid()
true
.isValid
in interface Verifiable
true
.public BitGene newInstance()
newInstance
in interface Gene<Boolean,BitGene>
newInstance
in interface Factory<BitGene>
public BitGene newInstance(Boolean value)
value
..newInstance
in interface Gene<Boolean,BitGene>
value
- the value of the new gene.© 2007-2020 Franz Wilhelmstötter (2020-02-18 20:01)