public static Codec<Long, LongGene> ofScalar(final LongRange domain) {
		requireNonNull(domain);

		return Codec.of(
			Genotype.of(LongChromosome.of(domain)),
			gt -> gt.getGene().getAllele()
		);
	}
public static Codec < Long , LongGene > ofScalar ( final LongRange domain ) { requireNonNull ( domain ) ; return Codec . of ( Genotype . of ( LongChromosome . of ( domain ) ) , gt -> gt . getGene ( ) . getAllele ( ) ) ; }
Return a scalar {@code Codec} for the given range.

@param domain the domain of the returned {@code Codec}
@return a new scalar {@code Codec} with the given domain.
@throws NullPointerException if the given {@code domain} is {@code null}