@Override
	public void readExternal(final ObjectInput in) throws IOException {
		_type = in.readByte();
		_object = switch (_type) {
			case BIG_INTEGER_CHROMOSOME -> BigIntegerChromosome.read(in);
			default -> throw new StreamCorruptedException("Unknown serialized type.");
		};
	}
Creates an instance for serialization.

@param type  the type
@param object  the object
jenetics.ext/src/main/java/io/jenetics/ext/SerialProxy.java