Code example for ObjectInput

Methods: readDouble

0
    public DoubleFieldImpl(final double value) {
        this.value = value;
    } 
 
    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
        value   = in.readDouble();
    } 
 
    public void writeExternal(ObjectOutput out) throws IOException {
        out.writeDouble(value);
    } 
 
    public Serializable getValue() {
        return new Double( this.value );
    } 
 
    public String toString() {
        return String.valueOf( this.value );
    } 
 
Contextual code suggestions in your IDE  Get Codota for Java