Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
    
  
  
  
  
    
    
    
  
  
    
    
  
  
Type
  public
  
  
  
  interface
  Type
  
  
  
  
  
    
      
        
          Known indirect subclasses
          
  
  
    
  
  
    
      
        | Class<T> | 
        
          Instances of the class Class represent classes and
 interfaces in a running Java application. 
          
    
         | 
       
      
    
      
        | GenericArrayType | 
        
          GenericArrayType represents an array type whose component
 type is either a parameterized type or a type variable. 
          
    
         | 
       
      
    
      
        | ParameterizedType | 
        
          ParameterizedType represents a parameterized type such as
 Collection<String>. 
          
    
         | 
       
      
    
      
        | TypeVariable<D extends GenericDeclaration> | 
        
          TypeVariable is the common superinterface for type variables of kinds. 
          
    
         | 
       
      
    
      
        | WildcardType | 
        
          WildcardType represents a wildcard type expression, such as
 ?, ? extends Number, or ? super Integer. 
          
    
         | 
       
      
    
   
   
         
       | 
    
  
    
  Type is the common superinterface for all types in the Java
 programming language. These include raw types, parameterized types,
 array types, type variables and primitive types.
Summary
Public methods | 
  
  
  
    
        
        default
        
        
        
        String
     | 
  
    
      
      getTypeName()
      
      
        Returns a string describing this type, including information
 about any type parameters.
        
    
 
      
     | 
  
  
Public methods
    getTypeName
    
public String getTypeName ()
    
    
    
  Returns a string describing this type, including information
 about any type parameters.
    
        
          Implementation Requirements:
          - The default implementation calls 
toString. 
         
    
      | Returns | 
      
        String | 
        a string describing this type | 
      
    
 
 
 
  
  
    
  
 
  
    
      
      
    
    
      
    
    
  
       
    
    
      
    
  
  
  Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
  Last updated 2025-02-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 2025-02-10 UTC."],[],[]]