Code example for ObjectInput

Methods: readByte, readObject

0
 
    @Override 
    public void readExternal( ObjectInput in )
        throws IOException, ClassNotFoundException { 
 
        super.readExternal( in );
 
        // VERSION 
        in.readByte();
 
        // HASHING STRATEGY 
        //noinspection unchecked 
        _hashingStrategy = ( TObjectHashingStrategy<T> ) in.readObject();
        if ( _hashingStrategy == null ) _hashingStrategy = this;
    } 
} // TObjectHash