1 package fr.orsay.lri.varna.applications.templateEditor;
4 public class Couple<T,U> {
7 private static final int HASH_PRIME = 1000003;
10 public Couple(T a, U b)
16 public boolean equals( Object c)
18 if (!(c instanceof Couple))
22 Couple<T,U> cc = (Couple<T,U>) c;
23 return (cc.first.equals(first) && (cc.second.equals(second)));
28 return HASH_PRIME*first.hashCode()+second.hashCode();
31 public String toString()
33 return "("+first+","+second+")";