Last active
December 9, 2015 09:33
-
-
Save marcojahn/68431e53deb6a3251d56 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public final class CompanyWrapper<T> { | |
private T t; | |
public CompanyWrapper() { } | |
public CompanyWrapper(T t) { | |
this.t = t; | |
} | |
public void set(T t) { | |
this.t = t; | |
} | |
public T get() { | |
return t; | |
} | |
public void nullify() { | |
t = null; | |
} | |
public boolean isNull() { | |
return t == null; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment