public interface BoundedGene<A extends Comparable<? super A>,G extends BoundedGene<A,G>> extends Gene<A,G>, Comparable<G>
| Modifier and Type | Method and Description | 
|---|---|
| default int | compareTo(G other) | 
| A | getMax()Return the allowed max value. | 
| A | getMin()Return the allowed min value. | 
| default boolean | isValid()Check if this object is valid. | 
| G | newInstance(A value)Create a new gene from the given  valueand the current bounds. | 
getAllele, newInstancedefault boolean isValid()
VerifiableisValid in interface Verifiabledefault int compareTo(G other)
compareTo in interface Comparable<G extends BoundedGene<A,G>>G newInstance(A value)
value and the current bounds.newInstance in interface Gene<A extends Comparable<? super A>,G extends BoundedGene<A,G>>value - the value of the new gene.© 2007-2014 Franz Wilhelmstötter (2014-12-28 10:45)