2015-04-20 15:36:01 -07:00
|
|
|
|
//: typeinfo/GenericClassReferences.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 GenericClassReferences {
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
Class intClass = int.class;
|
|
|
|
|
Class<Integer> genericIntClass = int.class;
|
|
|
|
|
genericIntClass = Integer.class; // Same thing
|
|
|
|
|
intClass = double.class;
|
|
|
|
|
// genericIntClass = double.class; // Illegal
|
|
|
|
|
}
|
|
|
|
|
} ///:~
|