repo.or.cz
/
aco.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
make an abstract Pair class
[aco.git]
/
aco
/
misc
/
Pair.java
blob
a753eb4b8aec8078d1c9fc42585b7f41717c5841
1
package
aco
.
misc
;
2
3
public abstract class
Pair
<
F
,
S
> {
4
protected final
F first
;
5
protected final
S second
;
6
7
public
Pair
(
F first
,
S second
) {
8
this
.
first
=
first
;
9
this
.
second
=
second
;
10
}
11
12
public
F
getFirst
() {
13
return this
.
first
;
14
}
15
16
public
S
getSecond
() {
17
return this
.
second
;
18
}
19
20
}