BitChromosome extends Number implements
		Chromosome<BitGene>,
		Comparable<BitChromosome>,
		Serializable { public BitChromosome invert() { final byte[] data = _genes.clone(); Bits.invert(data); return new BitChromosome(data, _length, 1.0 - _p); } private  BitChromosome(final byte[] bits, final int length, final double p);  BitChromosome(final byte[] bits, final int start, final int end);  BitChromosome(final byte[] bits); private  BitChromosome(final byte[] bits, final int length); double oneProbability(); @Override BitGene gene(); boolean booleanValue(); @Override BitGene get(final int index); @Override int length(); boolean booleanValue(final int index); int bitCount(); ListIterator<BitGene> listIterator(); @Override int intValue(); @Override long longValue(); @Override float floatValue(); @Override double doubleValue(); @Override boolean isValid(); BigInteger toBigInteger(); int toByteArray(final byte[] bytes); byte[] toByteArray(); BitSet toBitSet(); IntStream ones(); IntStream zeros(); @Override BitChromosome newInstance(final ISeq<BitGene> genes); @Override BitChromosome newInstance(); BitChromosome map(final Function<? super BitSet, ? extends BitSet> f); String toCanonicalString(); @Override int compareTo(final BitChromosome that); BitChromosome invert(); static BitChromosome of(final int length, final double p); static BitChromosome of(final int length); static BitChromosome of(final BitSet bits, final int length); static BitChromosome of(
		final BitSet bits,
		final int length,
		final double p
	); @Deprecated(since = "6.1", forRemoval = true) static BitChromosome of(final BitSet bits); static BitChromosome of(final BigInteger value); static BitChromosome of(final BigInteger value, final double p); static BitChromosome of(final CharSequence value); static BitChromosome of(final CharSequence value, final double p); static BitChromosome of(
		final CharSequence value,
		final int length,
		final double p
	); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString();  }
@Test public void invert() { final BitChromosome c1 = BitChromosome.of(100, 0.3); final BitChromosome c3 = c1.invert(); for (int i = 0; i < c1.length(); ++i) { Assert.assertTrue(c1.get(i).bit() != c3.get(i).bit()); } BitChromosome c4 = c3.invert(); Assert.assertEquals(c4, c1); }