private static boolean equals(final Object a, final Object b) {
		record Pair(Object a, Object b) {}

		return switch (new Pair(a, b)) {
			case Pair(Double x, Double y) -> doubleToLongBits(x) == doubleToLongBits(y);
			case Pair(Float x, Float y) -> floatToIntBits(x) == floatToIntBits(y);
			case Pair(BigDecimal x, BigDecimal y) -> x.compareTo(y) == 0;
			case Pair(BigInteger x, BigInteger y) -> x.compareTo(y) == 0;
			default -> Objects.equals(a, b);
		};
	}
The arity of {@code Val} objects is always zero.

@return always zero
jenetics.prog/src/main/java/io/jenetics/prog/op/Val.java