2015-04-20 15:36:01 -07:00
|
|
|
|
//: generics/BasicHolder.java
|
2015-05-29 14:18:51 -07:00
|
|
|
|
// <20>2015 MindView LLC: see Copyright.txt
|
2015-04-20 15:36:01 -07:00
|
|
|
|
|
|
|
|
|
public class BasicHolder<T> {
|
|
|
|
|
T element;
|
|
|
|
|
void set(T arg) { element = arg; }
|
|
|
|
|
T get() { return element; }
|
|
|
|
|
void f() {
|
|
|
|
|
System.out.println(element.getClass().getSimpleName());
|
|
|
|
|
}
|
|
|
|
|
} ///:~
|