sergAccount

Untitled

Aug 30th, 2020
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.63 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package com.spec.model;
  7.  
  8. /**
  9.  *
  10.  * @author Admin
  11.  */
  12. public class Box<T, V> {
  13.    
  14.     private T p1;
  15.     private V p2;
  16.  
  17.     public Box(T p1, V p2) {
  18.         this.p1 = p1;
  19.         this.p2 = p2;
  20.     }
  21.     //
  22.  
  23.     public T getP1() {
  24.         return p1;
  25.     }
  26.  
  27.     public void setP1(T p1) {
  28.         this.p1 = p1;
  29.     }
  30.  
  31.     public V getP2() {
  32.         return p2;
  33.     }
  34.  
  35.     public void setP2(V p2) {
  36.         this.p2 = p2;
  37.     }
  38. }
  39.  
Add Comment
Please, Sign In to add comment