Ejemplo n.º 1
0
  /** {@inheritDoc} */
  public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    // VERSION
    in.readByte();

    // SUPER
    super.readExternal(in);

    // NO_ENTRY_KEY
    no_entry_key = in.readFloat();

    // NO_ENTRY_VALUE
    no_entry_value = in.readDouble();
  }
Ejemplo n.º 2
0
  /** {@inheritDoc} */
  public void writeExternal(ObjectOutput out) throws IOException {
    // VERSION
    out.writeByte(0);

    // SUPER
    super.writeExternal(out);

    // NO_ENTRY_KEY
    out.writeFloat(no_entry_key);

    // NO_ENTRY_VALUE
    out.writeDouble(no_entry_value);
  }
Ejemplo n.º 3
0
 /**
  * Releases the element currently stored at <tt>index</tt>.
  *
  * @param index an <code>int</code> value
  */
 protected void removeAt(int index) {
   _set[index] = no_entry_value;
   super.removeAt(index);
 }
Ejemplo n.º 4
0
 /**
  * Releases the element currently stored at <tt>index</tt>.
  *
  * @param index an <code>int</code> value
  */
 @Override
 protected void removeAt(int index) {
   _set[index] = no_entry_key;
   super.removeAt(index);
 }