Last change
on this file was 1, checked in by Wouter Pasman, 6 years ago |
Initial import : Genius 9.0.0
|
File size:
352 bytes
|
Line | |
---|
1 | package agents.anac.y2015.pnegotiator;
|
---|
2 |
|
---|
3 | /**
|
---|
4 | * Created by chad on 2/26/15.
|
---|
5 | */
|
---|
6 | public class Tuple<K, V extends Comparable<V>> implements
|
---|
7 | Comparable<Tuple<K, V>> {
|
---|
8 | K key;
|
---|
9 | V value;
|
---|
10 |
|
---|
11 | public Tuple(K key, V value) {
|
---|
12 | this.key = key;
|
---|
13 | this.value = value;
|
---|
14 | }
|
---|
15 |
|
---|
16 | @Override
|
---|
17 | public int compareTo(Tuple<K, V> t2) {
|
---|
18 | return value.compareTo(t2.value);
|
---|
19 | }
|
---|
20 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.