Created
December 20, 2014 02:30
-
-
Save Goblom/69349d1dab356f28ca59 to your computer and use it in GitHub Desktop.
Wrapped Awesomeness
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 class Wrapped<T> { | |
private T object; | |
public Wrapped() { | |
this(null); | |
} | |
public Wrapped(T obj) { | |
this.object = obj; | |
} | |
public T get() { | |
return object; | |
} | |
public void set(T obj) { | |
this.object = obj; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment