
com.codurance.lightaccess.mapping.KeyValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of light-access Show documentation
Show all versions of light-access Show documentation
Non-intrusive JDBC library supporting lambdas
The newest version!
package com.codurance.lightaccess.mapping;
import java.util.Map;
public class KeyValue implements Map.Entry {
private final K key;
private V value;
public KeyValue(K key, V value) {
this.key = key;
this.value = value;
}
@Override
public K getKey() {
return key;
}
@Override
public V getValue() {
return value;
}
/**
* This class should be immutable but this method has to be
* implemented because of the Map.Entry interface.
*
* @see java.util.Map.Entry#setValue(Object)
*/
@Override
public Object setValue(Object value) {
throw new UnsupportedOperationException();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy