Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package com.spec.model;
- /**
- *
- * @author Admin
- */
- public class Box<T, V> {
- private T p1;
- private V p2;
- public Box(T p1, V p2) {
- this.p1 = p1;
- this.p2 = p2;
- }
- //
- public T getP1() {
- return p1;
- }
- public void setP1(T p1) {
- this.p1 = p1;
- }
- public V getP2() {
- return p2;
- }
- public void setP2(V p2) {
- this.p2 = p2;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement