Statements (28)
Predicate | Object |
---|---|
gptkbp:instanceOf |
Programming Language Feature
|
gptkbp:cannotUse |
Primitive Types as Type Parameters
|
gptkbp:documentedIn |
gptkb:Java_Language_Specification
|
gptkbp:enables |
Type Safety
Code Reusability Generic Classes Generic Interfaces Generic Methods |
gptkbp:example |
public <T> void printArray(T[] array)
public class Box<T> { ... } |
gptkbp:feature |
Compile-Time Type Checking
|
gptkbp:hasSyntax |
List<T>
|
https://www.w3.org/2000/01/rdf-schema#label |
Java Generics
|
gptkbp:introducedIn |
gptkb:Java_5
|
gptkbp:limitation |
No Generic Array Creation
No Instantiation of Type Parameters No Runtime Type Information |
gptkbp:partOf |
gptkb:Java_Programming_Language
|
gptkbp:relatedTo |
gptkb:C++_Templates
|
gptkbp:supports |
gptkb:Wildcards
Bounded Type Parameters |
gptkbp:usedBy |
gptkb:Java_Collections_Framework
|
gptkbp:uses |
Type Erasure
Type Parameters |
gptkbp:wildcardExample |
List<? extends Number>
List<? super Integer> |
gptkbp:bfsParent |
gptkb:Phil_Wadler
|
gptkbp:bfsLayer |
7
|