Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.37 KB | None | 0 0
  1. public class Pair<A, B> {
  2.     private A a;
  3.    
  4.     private B b;
  5.  
  6.     public Pair(A a, B b) {
  7.         this.a = a;
  8.         this.b = b;
  9.     }
  10.    
  11.     public A getA() {
  12.         return a;
  13.     }
  14.  
  15.     public void setA(A a) {
  16.         this.a = a;
  17.     }
  18.  
  19.     public B getB() {
  20.         return b;
  21.     }
  22.  
  23.     public void setB(B b) {
  24.         this.b = b;
  25.     }
  26.    
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement