@Override
	public void readExternal(final ObjectInput in)
		throws IOException, ClassNotFoundException
	{
		_type = in.readByte();
		_object = switch (_type) {
			case MATH_EXPR -> MathExpr.read(in);
			case CONST -> Const.read(in);
			case EPHEMERAL_CONST -> EphemeralConst.read(in);
			default -> throw new StreamCorruptedException("Unknown serialized type.");
		};
	}
Creates an instance for serialization.

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