public abstract class org.apache.commons.math3.genetics.BinaryChromosome extends org.apache.commons.math3.genetics.AbstractListChromosome<java.lang.Integer>
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.apache.commons.math3.genetics.BinaryChromosome
super_class: org.apache.commons.math3.genetics.AbstractListChromosome
{
public void <init>(java.util.List<java.lang.Integer>);
descriptor: (Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.apache.commons.math3.genetics.AbstractListChromosome.<init>:(Ljava/util/List;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/commons/math3/genetics/BinaryChromosome;
0 2 1 representation Ljava/util/List<Ljava/lang/Integer;>;
Exceptions:
throws org.apache.commons.math3.genetics.InvalidRepresentationException
Signature: (Ljava/util/List<Ljava/lang/Integer;>;)V
MethodParameters:
Name Flags
representation
public void <init>(java.lang.Integer[]);
descriptor: ([Ljava/lang/Integer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.apache.commons.math3.genetics.AbstractListChromosome.<init>:([Ljava/lang/Object;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/commons/math3/genetics/BinaryChromosome;
0 2 1 representation [Ljava/lang/Integer;
Exceptions:
throws org.apache.commons.math3.genetics.InvalidRepresentationException
MethodParameters:
Name Flags
representation
protected void checkValidity(java.util.List<java.lang.Integer>);
descriptor: (Ljava/util/List;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=7, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 6
StackMap locals: org.apache.commons.math3.genetics.BinaryChromosome java.util.List top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
istore 2
start local 2 2: iload 2
iflt 3
iload 2
iconst_1
if_icmple 6
3: StackMap locals: org.apache.commons.math3.genetics.BinaryChromosome java.util.List int java.util.Iterator
StackMap stack:
new org.apache.commons.math3.genetics.InvalidRepresentationException
dup
getstatic org.apache.commons.math3.exception.util.LocalizedFormats.INVALID_BINARY_DIGIT:Lorg/apache/commons/math3/exception/util/LocalizedFormats;
iconst_1
anewarray java.lang.Object
dup
iconst_0
4: iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
5: aastore
invokespecial org.apache.commons.math3.genetics.InvalidRepresentationException.<init>:(Lorg/apache/commons/math3/exception/util/Localizable;[Ljava/lang/Object;)V
athrow
end local 2 6: StackMap locals: org.apache.commons.math3.genetics.BinaryChromosome java.util.List top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/commons/math3/genetics/BinaryChromosome;
0 8 1 chromosomeRepresentation Ljava/util/List<Ljava/lang/Integer;>;
2 6 2 i I
Exceptions:
throws org.apache.commons.math3.genetics.InvalidRepresentationException
Signature: (Ljava/util/List<Ljava/lang/Integer;>;)V
MethodParameters:
Name Flags
chromosomeRepresentation
public static java.util.List<java.lang.Integer> randomBinaryRepresentation(int);
descriptor: (I)Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: new java.util.ArrayList
dup
iload 0
invokespecial java.util.ArrayList.<init>:(I)V
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 5
3: StackMap locals: java.util.List int
StackMap stack:
aload 1
invokestatic org.apache.commons.math3.genetics.GeneticAlgorithm.getRandomGenerator:()Lorg/apache/commons/math3/random/RandomGenerator;
iconst_2
invokeinterface org.apache.commons.math3.random.RandomGenerator.nextInt:(I)I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
4: iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
iload 0
if_icmplt 3
end local 2 6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 length I
1 7 1 rList Ljava/util/List<Ljava/lang/Integer;>;
2 6 2 j I
Signature: (I)Ljava/util/List<Ljava/lang/Integer;>;
MethodParameters:
Name Flags
length
protected boolean isSame(org.apache.commons.math3.genetics.Chromosome);
descriptor: (Lorg/apache/commons/math3/genetics/Chromosome;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
instanceof org.apache.commons.math3.genetics.BinaryChromosome
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 1
checkcast org.apache.commons.math3.genetics.BinaryChromosome
astore 2
start local 2 3: aload 0
invokevirtual org.apache.commons.math3.genetics.BinaryChromosome.getLength:()I
aload 2
invokevirtual org.apache.commons.math3.genetics.BinaryChromosome.getLength:()I
if_icmpeq 5
4: iconst_0
ireturn
5: StackMap locals: org.apache.commons.math3.genetics.BinaryChromosome
StackMap stack:
iconst_0
istore 3
start local 3 6: goto 10
7: StackMap locals: int
StackMap stack:
aload 0
invokevirtual org.apache.commons.math3.genetics.BinaryChromosome.getRepresentation:()Ljava/util/List;
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.Integer
aload 2
invokevirtual org.apache.commons.math3.genetics.BinaryChromosome.getRepresentation:()Ljava/util/List;
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
invokevirtual java.lang.Integer.equals:(Ljava/lang/Object;)Z
ifne 9
8: iconst_0
ireturn
9: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
10: iload 3
aload 0
invokevirtual org.apache.commons.math3.genetics.BinaryChromosome.getRepresentation:()Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmplt 7
end local 3 11: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/commons/math3/genetics/BinaryChromosome;
0 12 1 another Lorg/apache/commons/math3/genetics/Chromosome;
3 12 2 anotherBc Lorg/apache/commons/math3/genetics/BinaryChromosome;
6 11 3 i I
MethodParameters:
Name Flags
another
}
Signature: Lorg/apache/commons/math3/genetics/AbstractListChromosome<Ljava/lang/Integer;>;
SourceFile: "BinaryChromosome.java"