/** * Store the current operation * * @param currentOperation The currentOperation to set. */ public void setCurrentOperation( int currentOperation ) { this.currentOperation = ModificationOperation.getOperation( currentOperation ); }
/** * Compute the modification @see Object#hashCode * @return the instance's hash code */ @Override public int hashCode() { int h = 37; h += h * 17 + operation.getValue(); h += h * 17 + attribute.hashCode(); return h; }
/** * Store the current operation * * @param currentOperation The currentOperation to set. */ public void setCurrentOperation( int currentOperation ) { this.currentOperation = ModificationOperation.getOperation( currentOperation ); }
/** * Compute the modification @see Object#hashCode * @return the instance's hash code */ @Override public int hashCode() { int h = 37; h += h * 17 + operation.getValue(); h += h * 17 + attribute.hashCode(); return h; }
/** * {@inheritDoc} */ @Override public void setOperation( int operation ) { this.operation = ModificationOperation.getOperation( operation ); }
/** * Compute the modification @see Object#hashCode * @return the instance's hash code */ @Override public int hashCode() { int h = 37; h += h * 17 + operation.getValue(); h += h * 17 + attribute.hashCode(); return h; }
/** * Store the current operation * * @param currentOperation The currentOperation to set. */ public void setCurrentOperation( int currentOperation ) { this.currentOperation = ModificationOperation.getOperation( currentOperation ); }
/** * @see java.io.Externalizable#writeExternal(ObjectOutput) */ @Override public void writeExternal( ObjectOutput out ) throws IOException { // The operation out.writeInt( operation.getValue() ); // The EntryAttribute if not null if ( attribute != null ) { out.writeBoolean( true ); attribute.writeExternal( out ); } else { out.writeBoolean( false ); } out.flush(); }
/** * {@inheritDoc} */ @Override public void setOperation( int operation ) { this.operation = ModificationOperation.getOperation( operation ); }
/** * @see java.io.Externalizable#writeExternal(ObjectOutput) */ @Override public void writeExternal( ObjectOutput out ) throws IOException { // The operation out.writeInt( operation.getValue() ); // The EntryAttribute if not null if ( attribute != null ) { out.writeBoolean( true ); attribute.writeExternal( out ); } else { out.writeBoolean( false ); } out.flush(); }
/** * Store the current operation * * @param currentOperation The currentOperation to set. */ public void setCurrentOperation( int currentOperation ) { this.currentOperation = ModificationOperation.getOperation( currentOperation ); }
/** * @see java.io.Externalizable#writeExternal(ObjectOutput) */ @Override public void writeExternal( ObjectOutput out ) throws IOException { // The operation out.writeInt( operation.getValue() ); // The EntryAttribute if not null if ( attribute != null ) { out.writeBoolean( true ); attribute.writeExternal( out ); } else { out.writeBoolean( false ); } out.flush(); }
/** * {@inheritDoc} */ @Override public void setOperation( int operation ) { this.operation = ModificationOperation.getOperation( operation ); }
buffer.put( ( byte ) modification.getOperation().getValue() );
/** * @see java.io.Externalizable#readExternal(ObjectInput) */ @Override public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException { // The operation operation = ModificationOperation.getOperation( in.readInt() ); // The EntryAttribute if we have some boolean hasAttribute = in.readBoolean(); if ( hasAttribute ) { attribute = new DefaultAttribute(); attribute.readExternal( in ); } }
buffer.put( ( byte ) modification.getOperation().getValue() );
/** * @see java.io.Externalizable#readExternal(ObjectInput) */ @Override public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException { // The operation operation = ModificationOperation.getOperation( in.readInt() ); // The EntryAttribute if we have some boolean hasAttribute = in.readBoolean(); if ( hasAttribute ) { attribute = new DefaultAttribute(); attribute.readExternal( in ); } }
buffer.put( ( byte ) modification.getOperation().getValue() );
/** * @see java.io.Externalizable#readExternal(ObjectInput) */ @Override public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException { // The operation operation = ModificationOperation.getOperation( in.readInt() ); // The EntryAttribute if we have some boolean hasAttribute = in.readBoolean(); if ( hasAttribute ) { attribute = new DefaultAttribute(); attribute.readExternal( in ); } }