Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MyPair<K, V> {
- private K one;
- private V other;
- public MyPair(K one, V other) {
- super();
- this.one = one;
- this.other = other;
- }
- public K getOne() {
- return one;
- }
- public void setOne(K one) {
- this.one = one;
- }
- public V getOther() {
- return other;
- }
- public void setOther(V other) {
- this.other = other;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement