Missing STL. Added Pair<X,Y>
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@147 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
835e85374e
commit
1f60c70688
|
|
@ -0,0 +1,22 @@
|
|||
package org.broadinstitute.sting.utils;
|
||||
|
||||
|
||||
public class Pair<X,Y> {
|
||||
// declare public, STL-style for easier and more efficient access:
|
||||
public X first;
|
||||
public Y second;
|
||||
|
||||
public Pair(X x, Y y) { first = x; second = y; }
|
||||
|
||||
public void set(X x, Y y) { first = x; second = y; }
|
||||
|
||||
/** Java-style getter; note that we currently allow direct access to
|
||||
the member field.
|
||||
*/
|
||||
public X getFirst() { return first; }
|
||||
|
||||
/** Java-style getter; note that we currently allow direct access to
|
||||
the member field.
|
||||
*/
|
||||
public Y getSecond() { return second; }
|
||||
}
|
||||
Loading…
Reference in New Issue