This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
java:generics [2015/03/19 13:29] gthanos [Παραμετρικοί τύποι δεδομένων (Generics)] |
java:generics [2015/03/19 13:37] gthanos [Παραμετρικοί τύποι δεδομένων με πολλές παραμέτρους] |
||
---|---|---|---|
Line 120: | Line 120: | ||
} | } | ||
</code> | </code> | ||
+ | <code java OrderedPair.java> | ||
public class OrderedPair<K, V> implements Pair<K,V> { | public class OrderedPair<K, V> implements Pair<K,V> { | ||
Line 135: | Line 136: | ||
public V getValue() { return value; } | public V getValue() { return value; } | ||
} | } | ||
- | <code java OrderedPair.java> | ||
- | |||
</code> | </code> | ||