Code example for ObjectInput

Methods: readDoublereadUTF

0
		output.writeDouble(tick.getBid());
	} 
 
	@Override 
	public Tick readObject(ObjectInput input) throws IOException, ClassNotFoundException {
		return new Tick(input.readUTF(), input.readDouble(), input.readDouble());
	} 
 
	@Override 
	public Integer getId() {
		return 2345; 
	} 
 
	@SuppressWarnings("unchecked") 
	@Override 
	public Set<Class<? extends Tick>> getTypeClasses() {
		return Util.<Class<? extends Tick>> asSet(Tick.class);
	} 
 
} 
Experience pair programming with AI  Get Codota for Java