CCB Premier Import
This commit is contained in:
17
11-SOURCES/generique/Pair.java
Normal file
17
11-SOURCES/generique/Pair.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package generique;
|
||||
|
||||
public class Pair<K, V> {
|
||||
// G<>rer une paire cl<63> - valeur (ayant chacune un type g<>n<EFBFBD>rique)
|
||||
private K key;
|
||||
private V value;
|
||||
|
||||
public Pair(K key, V value) {
|
||||
this.key = key;
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public void setKey(K key) { this.key = key; }
|
||||
public void setValue(V value) { this.value = value; }
|
||||
public K getKey() { return key; }
|
||||
public V getValue() { return value; }
|
||||
}
|
||||
Reference in New Issue
Block a user