public interface
Type
Type
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003e\u003ccode\u003eType\u003c/code\u003e is the base interface for all data types within the Java programming language, encompassing raw, parameterized, array, type variable, and primitive types.\u003c/p\u003e\n"],["\u003cp\u003eThis interface serves as a common foundation for \u003ccode\u003eClass\u003c/code\u003e, \u003ccode\u003eGenericArrayType\u003c/code\u003e, \u003ccode\u003eParameterizedType\u003c/code\u003e, and \u003ccode\u003eWildcardType\u003c/code\u003e, which represent specific kinds of types in Java reflection.\u003c/p\u003e\n"],["\u003cp\u003eEach of these known sub-interfaces provides a way to interact with and manipulate different aspects of type information at runtime.\u003c/p\u003e\n"]]],[],null,["# Type\n\npublic interface **Type** \n\n|---|---|---|\n| Known Indirect Subclasses [Class](../../../../reference/java/lang/Class.html)\\\u003cT\\\u003e, [GenericArrayType](../../../../reference/java/lang/reflect/GenericArrayType.html), [ParameterizedType](../../../../reference/java/lang/reflect/ParameterizedType.html), [WildcardType](../../../../reference/java/lang/reflect/WildcardType.html) |-------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------| | [Class](../../../../reference/java/lang/Class.html)\\\u003cT\\\u003e | Instances of the class `Class` represent classes and interfaces in a running Java application. | | [GenericArrayType](../../../../reference/java/lang/reflect/GenericArrayType.html) | `GenericArrayType` represents an array type whose component type is either a parameterized type or a type variable. | | [ParameterizedType](../../../../reference/java/lang/reflect/ParameterizedType.html) | ParameterizedType represents a parameterized type such as Collection\\\u003cString\\\u003e. | | [WildcardType](../../../../reference/java/lang/reflect/WildcardType.html) | WildcardType represents a wildcard type expression, such as `?`, `? extends Number`, or `? super Integer`. | |||\n\nType is the common superinterface for all types in the Java\nprogramming language. These include raw types, parameterized types,\narray types, type variables and primitive types."]]