@Override protected DataWord setKey(DataWord key) { return super.setKey(key); }
@Override protected DataWord setValue(DataWord value) { return super.setValue(value); }
/** * Sets the value stored in this <code>Map.Entry</code>. * <p> * This <code>Map.Entry</code> is not connected to a Map, so only the * local data is changed. * * @param value the new value * @return the previous value */ @Override public V setValue(final V value) { // NOPMD return super.setValue(value); }
/** * Sets the key. * * @param key the new key * @return the old key * @throws IllegalArgumentException if key is this object */ @Override public K setKey(final K key) { if (key == this) { throw new IllegalArgumentException("DefaultKeyValue may not contain itself as a key."); } return super.setKey(key); }
/** * Sets the value. * * @return the old value of the value * @param value the new value * @throws IllegalArgumentException if value is this object */ @Override public V setValue(final V value) { if (value == this) { throw new IllegalArgumentException("DefaultKeyValue may not contain itself as a value."); } return super.setValue(value); }