Advertisement
sergAccount

Untitled

Feb 14th, 2021
595
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.51 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.mycompany.ja11;
  7.  
  8. /**
  9.  *
  10.  * @author Admin
  11.  */
  12. public class Holder<T> {
  13.  
  14.     private T obj;
  15.  
  16.     public Holder() {
  17.     }
  18.  
  19.     public Holder(T obj) {
  20.         this.obj = obj;
  21.     }
  22.  
  23.     public T getObj() {
  24.         return obj;
  25.     }
  26.  
  27.     public void setObj(T obj) {
  28.         this.obj = obj;
  29.     }
  30. }
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement