java.lang.Object
java.lang.Record
io.jenetics.ShiftMutator.Range
- Record Components:
a- the start index of the shift range (inclusively)b- the end index (exclusively) of the first shift range and the start index (inclusively) of the second shift rangec- the end index (exclusively) of the second shift range
- Enclosing class:
ShiftMutator<G extends Gene<?,G>, C extends Comparable<? super C>>
This class defines the
Chromosome shift indexes.
-
Constructor Summary
ConstructorsConstructorDescriptionRange(int a, int b, int c) Create a new shift range with the given parameters -
Method Summary
Modifier and TypeMethodDescriptioninta()Returns the value of thearecord component.intb()Returns the value of thebrecord component.intc()Returns the value of thecrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Range
Create a new shift range with the given parameters- Throws:
IllegalArgumentException- if the indexes are smaller than zero or overlapping
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
a
Returns the value of thearecord component.- Returns:
- the value of the
arecord component
-
b
Returns the value of thebrecord component.- Returns:
- the value of the
brecord component
-
c
Returns the value of thecrecord component.- Returns:
- the value of the
crecord component
-