public class Association<K, V> { private K key; private V value; //etc (more code follows) }
public Association(K aKey, V aValue) {
this.key = aKey;
this.value = aValue;
}
public K getKey() {
return this.key;
}
public V getValue() {
return this.value;
}
package assoc.model; public class Association<K, V> { private K key; private V value; //-------------------------- //Constructors Here public Association(K aKey, V aValue) { this.key = aKey; this.value = aValue; } //-------------------------- //Getters public K getKey() { return this.key; } public V getValue() { return this.value; } }