Uses of Class
java.lang.Class

Packages that useClass
Package
Description
java.awt
Contains all of the classes for creating user interfaces and for painting graphics and images.
java.awt.datatransfer
Provides interfaces and classes for transferring data between and within applications.
java.awt.dnd
Drag and Drop is a direct manipulation gesture found in many Graphical User Interface systems that provides a mechanism to transfer information between two entities logically associated with presentation elements in the GUI.
java.awt.image.renderable
Provides classes and interfaces for producing rendering-independent images.
java.beans
Contains classes related to developingbeans -- components based on the JavaBeans architecture.
java.beans.beancontext
Provides classes and interfaces relating to bean context.
java.io
Provides for system input and output through data streams, serialization and the file system.
java.lang
Provides classes that are fundamental to the design of the Java programming language.
java.lang.annotation
Provides library support for the Java programming language annotation facility.
java.lang.classfile
Provides classfile parsing, generation, and transformation library.
java.lang.classfile.constantpool
Provides interfaces describing classfile constant pool entries for thejava.lang.classfilePREVIEW library.
java.lang.constant
Classes and interfaces to representnominal descriptors for run-time entities such as classes or method handles, and classfile entities such as constant pool entries orinvokedynamic call sites.
java.lang.foreign
Provides low-level access to memory and functions outside the Java runtime.
java.lang.instrument
Provides services that allow Java programming language agents to instrument programs running on the Java Virtual Machine (JVM).
java.lang.invoke
Thejava.lang.invoke package provides low-level primitives for interacting with the Java Virtual Machine.
java.lang.management
Provides the management interfaces for monitoring and management of the Java virtual machine and other components in the Java runtime.
java.lang.reflect
Provides classes and interfaces for obtaining reflective information about classes and objects.
java.lang.runtime
Thejava.lang.runtime package provides low-level runtime support for the Java language.
java.net
Provides the classes for implementing networking applications.
java.nio.file
Defines interfaces and classes for the Java virtual machine to access files, file attributes, and file systems.
java.nio.file.spi
Service-provider classes for thejava.nio.file package.
java.rmi.server
Provides classes and interfaces for supporting the server side of RMI.
java.security
Provides the classes and interfaces for the security framework.
java.sql
Provides the API for accessing and processing data stored in a data source (usually a relational database) using the Java programming language.
java.util
Contains the collections framework, some internationalization support classes, a service loader, properties, random number generation, string parsing and scanning classes, base64 encoding and decoding, a bit array, and several miscellaneous utility classes.
java.util.concurrent.atomic
A small toolkit of classes that support lock-free thread-safe programming on single variables.
java.util.prefs
This package allows applications to store and retrieve user and system preference and configuration data.
javax.annotation.processing
Facilities for declaring annotation processors and for allowing annotation processors to communicate with an annotation processing tool environment.
javax.crypto
Provides the classes and interfaces for cryptographic operations.
javax.imageio.metadata
A package of the Java Image I/O API dealing with reading and writing metadata.
javax.imageio.spi
A package of the Java Image I/O API containing the plug-in interfaces for readers, writers, transcoders, and streams, and a runtime registry.
javax.lang.model
Types and hierarchies of packages comprising a Java language model, a reflective API that models the declarations and types of the Java programming language.
javax.lang.model.element
Interfaces used to model elements of the Java programming language.
javax.lang.model.type
Interfaces used to model Java programming language types.
javax.management
Provides the core classes for the Java Management Extensions.
javax.management.loading
Provides the classes which implement advanced dynamic loading.
javax.management.openmbean
Provides the open data types and Open MBean descriptor classes.
javax.naming.spi
Provides the means for dynamically plugging in support for accessingnaming and directory services through thejavax.namingand related packages.
javax.print
Provides the principal classes and interfaces for the Java Print Service API.
javax.print.attribute
Provides classes and interfaces that describe the types of Java Print Service attributes and how they can be collected into attribute sets.
javax.print.attribute.standard
Packagejavax.print.attribute.standard contains classes for specific printing attributes.
javax.script
The scripting API consists of interfaces and classes that defineJava Scripting Engines and providesa framework for their use in Java applications.
javax.security.auth
This package provides a framework for authentication and authorization.
javax.sound.midi
Provides interfaces and classes for I/O, sequencing, and synthesis of MIDI (Musical Instrument Digital Interface) data.
javax.sound.sampled
Provides interfaces and classes for capture, processing, and playback of sampled audio data.
javax.sql
Provides the API for server side data source access and processing from the Java programming language.
javax.sql.rowset
Standard interfaces and base classes for JDBCRowSet implementations.
javax.sql.rowset.serial
Provides utility classes to allow serializable mappings between SQL types and data types in the Java programming language.
javax.swing
Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
javax.swing.event
Provides for events fired by Swing components.
javax.swing.plaf.synth
Synth is a skinnable look and feel in which all painting is delegated.
javax.swing.table
Provides classes and interfaces for dealing withjavax.swing.JTable.
javax.swing.text
Provides classes and interfaces that deal with editable and noneditable text components.
javax.swing.tree
Provides classes and interfaces for dealing withjavax.swing.JTree.
javax.tools
Provides interfaces for tools which can be invoked from a program, for example, compilers.
javax.xml.xpath
Provides anobject-model neutral API for the evaluation of XPath expressions and access to the evaluation environment.
  • Uses ofClass injava.awt

    Methods injava.awt with parameters of typeClass
    Modifier and Type
    Method
    Description
    Toolkit.createDragGestureRecognizer(Class<T> abstractRecognizerClass,DragSource ds,Component c, int srcActions,DragGestureListener dgl)
    Creates a concrete, platform dependent, subclass of the abstract DragGestureRecognizer class requested, and associates it with the DragSource, Component and DragGestureListener specified.
    static <T extendsEventListener>
    T[]
    AWTEventMulticaster.getListeners(EventListener l,Class<T> listenerType)
    Returns an array of all the objects chained asFooListeners by the specifiedjava.util.EventListener.
    <T extendsEventListener>
    T[]
    Button.getListeners(Class<T> listenerType)
    Returns an array of all the objects currently registered asFooListeners upon thisButton.
    <T extendsEventListener>
    T[]
    Checkbox.getListeners(Class<T> listenerType)
    Returns an array of all the objects currently registered asFooListeners upon thisCheckbox.
    <T extendsEventListener>
    T[]
    CheckboxMenuItem.getListeners(Class<T> listenerType)
    Returns an array of all the objects currently registered asFooListeners upon thisCheckboxMenuItem.
    <T extendsEventListener>
    T[]
    Choice.getListeners(Class<T> listenerType)
    Returns an array of all the objects currently registered asFooListeners upon thisChoice.
    <T extendsEventListener>
    T[]
    Component.getListeners(Class<T> listenerType)
    Returns an array of all the objects currently registered asFooListeners upon thisComponent.
    <T extendsEventListener>
    T[]
    Container.getListeners(Class<T> listenerType)
    Returns an array of all the objects currently registered asFooListeners upon thisContainer.
    <T extendsEventListener>
    T[]
    List.getListeners(Class<T> listenerType)
    Returns an array of all the objects currently registered asFooListeners upon thisList.
    <T extendsEventListener>
    T[]
    MenuItem.getListeners(Class<T> listenerType)
    Returns an array of all the objects currently registered asFooListeners upon thisMenuItem.
    <T extendsEventListener>
    T[]
    Scrollbar.getListeners(Class<T> listenerType)
    Returns an array of all the objects currently registered asFooListeners upon thisScrollbar.
    <T extendsEventListener>
    T[]
    TextComponent.getListeners(Class<T> listenerType)
    Returns an array of all the objects currently registered asFooListeners upon thisTextComponent.
    <T extendsEventListener>
    T[]
    TextField.getListeners(Class<T> listenerType)
    Returns an array of all the objects currently registered asFooListeners upon thisTextField.
    <T extendsEventListener>
    T[]
    Window.getListeners(Class<T> listenerType)
    Returns an array of all the objects currently registered asFooListeners upon thisWindow.
    protected static void
    AWTKeyStroke.registerSubclass(Class<?> subclass)
    Deprecated. 
  • Uses ofClass injava.awt.datatransfer

    Methods injava.awt.datatransfer that returnClass
    Modifier and Type
    Method
    Description
    finalClass<?>
    Returns the default representation class.
    Returns theClass which objects supporting thisDataFlavor will return when thisDataFlavor is requested.
    protected static finalClass<?>
    DataFlavor.tryToLoadClass(String className,ClassLoader fallback)
    Tries to load a class from: the bootstrap loader, the system loader, the context loader (if one is present) and finally the loader specified.
    Constructors injava.awt.datatransfer with parameters of typeClass
    Modifier
    Constructor
    Description
     
    DataFlavor(Class<?> representationClass,String humanPresentableName)
    Constructs aDataFlavor that represents a Java class.
  • Uses ofClass injava.awt.dnd

    Methods injava.awt.dnd with parameters of typeClass
    Modifier and Type
    Method
    Description
    DragSource.createDragGestureRecognizer(Class<T> recognizerAbstractClass,Component c, int actions,DragGestureListener dgl)
    Creates a newDragGestureRecognizer that implements the specified abstract subclass ofDragGestureRecognizer, and sets the specifiedComponent andDragGestureListener on the newly created object.
    <T extendsEventListener>
    T[]
    DragSource.getListeners(Class<T> listenerType)
    Gets all the objects currently registered asFooListeners upon thisDragSource.
  • Uses ofClass injava.awt.image.renderable

    Methods injava.awt.image.renderable that returnClass
    Modifier and Type
    Method
    Description
    Class<?>[]
    ParameterBlock.getParamClasses()
    Returns an array of Class objects describing the types of the parameters.
  • Uses ofClass injava.beans

    Methods injava.beans that returnClass
    Modifier and Type
    Method
    Description
    BeanDescriptor.getBeanClass()
    Gets the bean's Class object.
    BeanDescriptor.getCustomizerClass()
    Gets the Class object for the bean's customizer.
    IndexedPropertyDescriptor.getIndexedPropertyType()
    Returns the Java type info for the indexed property.
    EventSetDescriptor.getListenerType()
    Gets theClass object for the target interface.
    PropertyDescriptor.getPropertyEditorClass()
    Gets any explicit PropertyEditor Class that has been registered for this property.
    PropertyDescriptor.getPropertyType()
    Returns the Java type info for the property.
    Methods injava.beans with parameters of typeClass
    Modifier and Type
    Method
    Description
    static <T> T
    EventHandler.create(Class<T> listenerInterface,Object target,String action)
    Creates an implementation oflistenerInterface in whichall of the methods in the listener interface apply the handler'saction to thetarget.
    static <T> T
    EventHandler.create(Class<T> listenerInterface,Object target,String action,String eventPropertyName)
    /** Creates an implementation oflistenerInterface in whichall of the methods pass the value of the event expression,eventPropertyName, to the final method in the statement,action, which is applied to thetarget.
    static <T> T
    EventHandler.create(Class<T> listenerInterface,Object target,String action,String eventPropertyName,String listenerMethodName)
    Creates an implementation oflistenerInterface in which the method namedlistenerMethodName passes the value of the event expression,eventPropertyName, to the final method in the statement,action, which is applied to thetarget.
    PropertyEditorManager.findEditor(Class<?> targetType)
    Locate a value editor for a given target type.
    static void
    Introspector.flushFromCaches(Class<?> clz)
    Flush the Introspector's internal cached information for a given class.
    staticBeanInfo
    Introspector.getBeanInfo(Class<?> beanClass)
    Introspect on a Java Bean and learn about all its properties, exposed methods, and events.
    staticBeanInfo
    Introspector.getBeanInfo(Class<?> beanClass, int flags)
    Introspect on a Java bean and learn about all its properties, exposed methods, and events, subject to some control flags.
    staticBeanInfo
    Introspector.getBeanInfo(Class<?> beanClass,Class<?> stopClass)
    Introspect on a Java bean and learn all about its properties, exposed methods, below a given "stop" point.
    staticBeanInfo
    Introspector.getBeanInfo(Class<?> beanClass,Class<?> stopClass, int flags)
    Introspect on a Java Bean and learn about all its properties, exposed methods and events, below a givenstopClass point subject to some controlflags.
    staticObject
    Beans.getInstanceOf(Object bean,Class<?> targetType)
    From a given bean, obtain an object representing a specified type view of that source object.
    Encoder.getPersistenceDelegate(Class<?> type)
    Returns the persistence delegate for the given type.
    protected void
    DefaultPersistenceDelegate.initialize(Class<?> type,Object oldInstance,Object newInstance,Encoder out)
    This default implementation of theinitialize method assumes all state held in objects of this type is exposed via the matching pairs of "setter" and "getter" methods in the order they are returned by the Introspector.
    protected void
    PersistenceDelegate.initialize(Class<?> type,Object oldInstance,Object newInstance,Encoder out)
    Produce a series of statements with side effects onnewInstance so that the new instance becomesequivalent tooldInstance.
    static boolean
    Beans.isInstanceOf(Object bean,Class<?> targetType)
    Check if a bean can be viewed as a given target type.
    static void
    PropertyEditorManager.registerEditor(Class<?> targetType,Class<?> editorClass)
    Registers an editor class to edit values of the given target class.
    void
    Associates the specified persistence delegate with the given type.
    void
    PropertyDescriptor.setPropertyEditorClass(Class<?> propertyEditorClass)
    Normally PropertyEditors will be found using the PropertyEditorManager.
    Constructors injava.beans with parameters of typeClass
    Modifier
    Constructor
    Description
     
    BeanDescriptor(Class<?> beanClass)
    Create a BeanDescriptor for a bean that doesn't have a customizer.
     
    BeanDescriptor(Class<?> beanClass,Class<?> customizerClass)
    Create a BeanDescriptor for a bean that has a customizer.
     
    EventSetDescriptor(Class<?> sourceClass,String eventSetName,Class<?> listenerType,String listenerMethodName)
    Creates anEventSetDescriptor assuming that you are following the most simple standard design pattern where a named event "fred" is (1) delivered as a call on the single method of interface FredListener, (2) has a single argument of type FredEvent, and (3) where the FredListener may be registered with a call on an addFredListener method of the source component and removed with a call on a removeFredListener method.
     
    EventSetDescriptor(Class<?> sourceClass,String eventSetName,Class<?> listenerType,String[] listenerMethodNames,String addListenerMethodName,String removeListenerMethodName)
    Creates anEventSetDescriptor from scratch using string names.
     
    EventSetDescriptor(Class<?> sourceClass,String eventSetName,Class<?> listenerType,String[] listenerMethodNames,String addListenerMethodName,String removeListenerMethodName,String getListenerMethodName)
    This constructor creates an EventSetDescriptor from scratch using string names.
     
    EventSetDescriptor(String eventSetName,Class<?> listenerType,MethodDescriptor[] listenerMethodDescriptors,Method addListenerMethod,Method removeListenerMethod)
    Creates anEventSetDescriptor from scratch usingjava.lang.reflect.MethodDescriptor andjava.lang.Class objects.
     
    EventSetDescriptor(String eventSetName,Class<?> listenerType,Method[] listenerMethods,Method addListenerMethod,Method removeListenerMethod)
    Creates anEventSetDescriptor from scratch usingjava.lang.reflect.Method andjava.lang.Class objects.
     
    EventSetDescriptor(String eventSetName,Class<?> listenerType,Method[] listenerMethods,Method addListenerMethod,Method removeListenerMethod,Method getListenerMethod)
    This constructor creates an EventSetDescriptor from scratch using java.lang.reflect.Method and java.lang.Class objects.
     
    IndexedPropertyDescriptor(String propertyName,Class<?> beanClass)
    This constructor constructs an IndexedPropertyDescriptor for a property that follows the standard Java conventions by having getFoo and setFoo accessor methods, for both indexed access and array access.
     
    IndexedPropertyDescriptor(String propertyName,Class<?> beanClass,String readMethodName,String writeMethodName,String indexedReadMethodName,String indexedWriteMethodName)
    This constructor takes the name of a simple property, and method names for reading and writing the property, both indexed and non-indexed.
     
    PropertyDescriptor(String propertyName,Class<?> beanClass)
    Constructs a PropertyDescriptor for a property that follows the standard Java convention by having getFoo and setFoo accessor methods.
     
    PropertyDescriptor(String propertyName,Class<?> beanClass,String readMethodName,String writeMethodName)
    This constructor takes the name of a simple property, and method names for reading and writing the property.
  • Uses ofClass injava.beans.beancontext

    Fields injava.beans.beancontext declared asClass
    Modifier and Type
    Field
    Description
    protectedClass<?>
    BeanContextServiceAvailableEvent.serviceClass
    Deprecated, for removal: This API element is subject to removal in a future version.
    AClass reference to the newly available service
    protectedClass<?>
    BeanContextServiceRevokedEvent.serviceClass
    Deprecated, for removal: This API element is subject to removal in a future version.
    AClass reference to the service that is being revoked.
    Methods injava.beans.beancontext that returnClass
    Modifier and Type
    Method
    Description
    BeanContextServiceAvailableEvent.getServiceClass()
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the service class that is the subject of this notification.
    BeanContextServiceRevokedEvent.getServiceClass()
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the service class that is the subject of this notification
    Methods injava.beans.beancontext with parameters of typeClass
    Modifier and Type
    Method
    Description
    boolean
    BeanContextServices.addService(Class<?> serviceClass,BeanContextServiceProvider serviceProvider)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Adds a service to this BeanContext.
    boolean
    BeanContextServicesSupport.addService(Class<?> serviceClass,BeanContextServiceProvider bcsp)
    Deprecated, for removal: This API element is subject to removal in a future version.
    add a service
    protected boolean
    BeanContextServicesSupport.addService(Class<?> serviceClass,BeanContextServiceProvider bcsp, boolean fireEvent)
    Deprecated, for removal: This API element is subject to removal in a future version.
    add a service
    protected static final boolean
    BeanContextSupport.classEquals(Class<?> first,Class<?> second)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Tests to see if two class objects, or their names are equal.
    BeanContextServicesSupport.createBCSSServiceProvider(Class<?> sc,BeanContextServiceProvider bcsp)
    Deprecated, for removal: This API element is subject to removal in a future version.
    subclasses can override this method to create new subclasses of BCSSServiceProvider without having to override addService() in order to instantiate.
    protected final void
    BeanContextServicesSupport.fireServiceAdded(Class<?> serviceClass)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Fires aBeanContextServiceEvent notifying of a new service.
    protected final void
    BeanContextServicesSupport.fireServiceRevoked(Class<?> serviceClass, boolean revokeNow)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Fires aBeanContextServiceRevokedEvent indicating that a particular service is no longer available.
    BeanContextServiceProvider.getCurrentServiceSelectors(BeanContextServices bcs,Class<?> serviceClass)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Invoked byBeanContextServices, this method gets the current service selectors for the specified service.
    BeanContextServices.getCurrentServiceSelectors(Class<?> serviceClass)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the list of service dependent service parameters (Service Selectors) for the specified service, by calling getCurrentServiceSelectors() on the underlying BeanContextServiceProvider.
    BeanContextServicesSupport.BCSSProxyServiceProvider.getCurrentServiceSelectors(BeanContextServices bcs,Class<?> serviceClass)
     
    BeanContextServicesSupport.getCurrentServiceSelectors(Class<?> serviceClass)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    BeanContextServiceProvider.getService(BeanContextServices bcs,Object requestor,Class<?> serviceClass,Object serviceSelector)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Invoked byBeanContextServices, this method requests an instance of a service from thisBeanContextServiceProvider.
    BeanContextServices.getService(BeanContextChild child,Object requestor,Class<?> serviceClass,Object serviceSelector,BeanContextServiceRevokedListener bcsrl)
    Deprecated, for removal: This API element is subject to removal in a future version.
    ABeanContextChild, or any arbitrary object associated with aBeanContextChild, may obtain a reference to a currently registered service from its nestingBeanContextServices via invocation of this method.
    BeanContextServicesSupport.BCSSProxyServiceProvider.getService(BeanContextServices bcs,Object requestor,Class<?> serviceClass,Object serviceSelector)
     
    BeanContextServicesSupport.getService(BeanContextChild child,Object requestor,Class<?> serviceClass,Object serviceSelector,BeanContextServiceRevokedListener bcsrl)
    Deprecated, for removal: This API element is subject to removal in a future version.
    obtain a service which may be delegated
    boolean
    BeanContextServices.hasService(Class<?> serviceClass)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Reports whether or not a given service is currently available from this context.
    boolean
    BeanContextServicesSupport.hasService(Class<?> serviceClass)
    Deprecated, for removal: This API element is subject to removal in a future version.
    has a service, which may be delegated
    boolean
    BeanContextServiceRevokedEvent.isServiceClass(Class<?> service)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Checks this event to determine whether or not the service being revoked is of a particular class.
    void
    BeanContextServices.revokeService(Class<?> serviceClass,BeanContextServiceProvider serviceProvider, boolean revokeCurrentServicesNow)
    Deprecated, for removal: This API element is subject to removal in a future version.
    BeanContextServiceProviders wishing to remove a currently registered service from this context may do so via invocation of this method.
    void
    BeanContextServicesSupport.revokeService(Class<?> serviceClass,BeanContextServiceProvider bcsp, boolean revokeCurrentServicesNow)
    Deprecated, for removal: This API element is subject to removal in a future version.
    remove a service
    Constructors injava.beans.beancontext with parameters of typeClass
    Modifier
    Constructor
    Description
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    Construct aBeanContextAvailableServiceEvent.
     
    BeanContextServiceRevokedEvent(BeanContextServices bcs,Class<?> sc, boolean invalidate)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Construct aBeanContextServiceEvent.
  • Uses ofClass injava.io

    Methods injava.io that returnClass
    Modifier and Type
    Method
    Description
    ObjectStreamClass.forClass()
    Return the class in the local VM that this version is mapped to.
    ObjectStreamField.getType()
    Get the type of the field.
    protectedClass<?>
    ObjectInputStream.resolveClass(ObjectStreamClass desc)
    Load the local class equivalent of the specified stream class description.
    protectedClass<?>
    ObjectInputStream.resolveProxyClass(String[] interfaces)
    Returns a proxy class that implements the interfaces named in a proxy class descriptor; subclasses may implement this method to read custom data from the stream along with the descriptors for dynamic proxy classes, allowing them to use an alternate loading mechanism for the interfaces and the proxy class.
    ObjectInputFilter.FilterInfo.serialClass()
    The class of an object being deserialized.
    Methods injava.io with parameters of typeClass
    Modifier and Type
    Method
    Description
    protected void
    ObjectOutputStream.annotateClass(Class<?> cl)
    Subclasses may implement this method to allow class data to be stored in the stream.
    protected void
    ObjectOutputStream.annotateProxyClass(Class<?> cl)
    Subclasses may implement this method to store custom data in the stream along with descriptors for dynamic proxy classes.
    ObjectStreamClass.lookup(Class<?> cl)
    Find the descriptor for a class that can be serialized.
    ObjectStreamClass.lookupAny(Class<?> cl)
    Returns the descriptor for any class, regardless of whether it implementsSerializable.
    Method parameters injava.io with type arguments of typeClass
    Modifier and Type
    Method
    Description
    ObjectInputFilter.allowFilter(Predicate<Class<?>> predicate,ObjectInputFilter.Status otherStatus)
    Returns a filter that returnsStatus.ALLOWED if the predicate on the class istrue.
    ObjectInputFilter.rejectFilter(Predicate<Class<?>> predicate,ObjectInputFilter.Status otherStatus)
    Returns a filter that returnsStatus.REJECTED if the predicate on the class istrue.
    Constructors injava.io with parameters of typeClass
    Modifier
    Constructor
    Description
     
    Create a Serializable field with the specified type.
     
    ObjectStreamField(String name,Class<?> type, boolean unshared)
    Creates an ObjectStreamField representing a serializable field with the given name and type.
  • Uses ofClass injava.lang

    Classes injava.lang that implement interfaces with type arguments of typeClass
    Modifier and Type
    Class
    Description
    final class 
    Instances of the classClass represent classes and interfaces in a running Java application.
    Fields injava.lang declared asClass
    Modifier and Type
    Field
    Description
    static finalClass<Boolean>
    Boolean.TYPE
    The Class object representing the primitive type boolean.
    static finalClass<Byte>
    Byte.TYPE
    TheClass instance representing the primitive typebyte.
    static finalClass<Character>
    Character.TYPE
    TheClass instance representing the primitive typechar.
    static finalClass<Double>
    Double.TYPE
    TheClass instance representing the primitive typedouble.
    static finalClass<Float>
    Float.TYPE
    TheClass instance representing the primitive typefloat.
    static finalClass<Integer>
    Integer.TYPE
    TheClass instance representing the primitive typeint.
    static finalClass<Long>
    Long.TYPE
    TheClass instance representing the primitive typelong.
    static finalClass<Short>
    Short.TYPE
    TheClass instance representing the primitive typeshort.
    static finalClass<Void>
    Void.TYPE
    TheClass object representing the pseudo-type corresponding to the keywordvoid.
    Methods injava.lang that returnClass
    Modifier and Type
    Method
    Description
    Class.arrayType()
    Returns aClass for an array type whose component type is described by thisClass.
    <U> Class<? extends U>
    Class.asSubclass(Class<U> clazz)
    Casts thisClass object to represent a subclass of the class represented by the specified class object.
    Returns the component type of thisClass, if it describes an array type, ornull otherwise.
    protected finalClass<?>
    ClassLoader.defineClass(byte[] b, int off, int len)
    protected finalClass<?>
    ClassLoader.defineClass(String name, byte[] b, int off, int len)
    Converts an array of bytes into an instance of classClass.
    protected finalClass<?>
    ClassLoader.defineClass(String name, byte[] b, int off, int len,ProtectionDomain protectionDomain)
    Converts an array of bytes into an instance of classClass, with a givenProtectionDomain.
    protected finalClass<?>
    ClassLoader.defineClass(String name,ByteBuffer b,ProtectionDomain protectionDomain)
    Converts aByteBuffer into an instance of classClass, with the givenProtectionDomain.
    Class<? extendsEnum>
    EnumConstantNotPresentException.enumType()
    Returns the type of the missing enum constant.
    protectedClass<?>
    ClassLoader.findClass(String name)
    Finds the class with the specifiedbinary name.
    protectedClass<?>
    ClassLoader.findClass(String moduleName,String name)
    Finds the class with the givenbinary name in a module defined to this class loader.
    protected finalClass<?>
    ClassLoader.findLoadedClass(String name)
    Returns the class with the givenbinary name if this loader has been recorded by the Java virtual machine as an initiating loader of a class with thatbinary name.
    protected finalClass<?>
    ClassLoader.findSystemClass(String name)
    Finds a class with the specifiedbinary name, loading it if necessary.
    staticClass<?>
    Class.forName(Module module,String name)
    Returns theClass with the givenbinary name in the given module.
    staticClass<?>
    Class.forName(String className)
    Returns theClass object associated with the class or interface with the given string name.
    staticClass<?>
    Class.forName(String name, boolean initialize,ClassLoader loader)
    Returns theClass object associated with the class or interface with the given string name, using the given class loader.
    staticClass<?>
    Class.forPrimitiveName(String primitiveName)
    Returns theClass object associated with theprimitive type of the given name.
    StackWalker.getCallerClass()
    Gets theClass object of the caller who invoked the method that invokedgetCallerClass.
    finalClass<?>
    Object.getClass()
    Returns the runtime class of thisObject.
    protectedClass<?>[]
    SecurityManager.getClassContext()
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the current execution stack as an array of classes.
    Class<?>[]
    Class.getClasses()
    Returns an array containingClass objects representing all the public classes and interfaces that are members of the class represented by thisClass object.
    Returns theClass representing the component type of an array.
    Class<?>[]
    Returns an array ofClass objects reflecting all the classes and interfaces declared as members of the class represented by thisClass object.
    If the class or interface represented by thisClass object is a member of another class, returns theClass object representing the class in which it was declared.
    finalClass<E>
    Returns the Class object corresponding to this enum constant's enum type.
    StackWalker.StackFrame.getDeclaringClass()
    Returns the declaringClass for the method represented by this stack frame.
    Returns the immediately enclosing class of the underlying class.
    Class<?>[]
    Returns the interfaces directly implemented by the class or interface represented by thisClass object.
    Class.getNestHost()
    Returns the nest host of thenest to which the class or interface represented by thisClass object belongs.
    Class<?>[]
    Returns an array containingClass objects representing all the classes and interfaces that are members of the nest to which the class or interface represented by thisClass object belongs.
    Class<?>[]
    Returns an array containingClass objects representing the direct subinterfaces or subclasses permitted to extend or implement this class or interface if it is sealed.
    Class<? superT>
    Returns theClass representing the direct superclass of the entity (class, interface, primitive type or void) represented by thisClass.
    ClassLoader.loadClass(String name)
    Loads the class with the specifiedbinary name.
    protectedClass<?>
    ClassLoader.loadClass(String name, boolean resolve)
    Loads the class with the specifiedbinary name.
    Methods injava.lang that return types with arguments of typeClass
    Modifier and Type
    Method
    Description
    Returns an array ofTypeVariable objects that represent the type variables declared by the generic declaration represented by thisGenericDeclaration object, in declaration order.
    Methods injava.lang with parameters of typeClass
    Modifier and Type
    Method
    Description
    Module.addUses(Class<?> service)
    If the caller's module is this module then update this module to add a service dependence on the given service type.
    <U> Class<? extends U>
    Class.asSubclass(Class<U> clazz)
    Casts thisClass object to represent a subclass of the class represented by the specified class object.
    boolean
    Module.canUse(Class<?> service)
    Indicates if this module has a service dependence on the given service type.
    protected abstractT
    ClassValue.computeValue(Class<?> type)
    Computes the given class's derived value for thisClassValue.
    ClassValue.get(Class<?> type)
    Returns the value for the given class.
    <A extendsAnnotation>
    A
    Class.getAnnotation(Class<A> annotationClass)
    Returns this element's annotation for the specified type if such an annotation ispresent, else null.
    <T extendsAnnotation>
    T
    Module.getAnnotation(Class<T> annotationClass)
    Returns this element's annotation for the specified type if such an annotation ispresent, else null.
    <A extendsAnnotation>
    A
    Package.getAnnotation(Class<A> annotationClass)
    Returns this element's annotation for the specified type if such an annotation ispresent, else null.
    <A extendsAnnotation>
    A[]
    Class.getAnnotationsByType(Class<A> annotationClass)
    Returns annotations that areassociated with this element.
    <A extendsAnnotation>
    A[]
    Package.getAnnotationsByType(Class<A> annotationClass)
    Returns annotations that areassociated with this element.
    Class.getConstructor(Class<?>... parameterTypes)
    Returns aConstructor object that reflects the specified public constructor of the class represented by thisClass object.
    <A extendsAnnotation>
    A
    Class.getDeclaredAnnotation(Class<A> annotationClass)
    Returns this element's annotation for the specified type if such an annotation isdirectly present, else null.
    <A extendsAnnotation>
    A
    Package.getDeclaredAnnotation(Class<A> annotationClass)
    Returns this element's annotation for the specified type if such an annotation isdirectly present, else null.
    <A extendsAnnotation>
    A[]
    Class.getDeclaredAnnotationsByType(Class<A> annotationClass)
    Returns this element's annotation(s) for the specified type if such annotations are eitherdirectly present orindirectly present.
    <A extendsAnnotation>
    A[]
    Package.getDeclaredAnnotationsByType(Class<A> annotationClass)
     
    Class.getDeclaredConstructor(Class<?>... parameterTypes)
    Returns aConstructor object that reflects the specified constructor of the class represented by thisClass object.
    Class.getDeclaredMethod(String name,Class<?>... parameterTypes)
    Returns aMethod object that reflects the specified declared method of the class or interface represented by thisClass object.
    Class.getMethod(String name,Class<?>... parameterTypes)
    Returns aMethod object that reflects the specified public member method of the class or interface represented by thisClass object.
    boolean
    Class.isAnnotationPresent(Class<? extendsAnnotation> annotationClass)
    Returns true if an annotation for the specified type ispresent on this element, else false.
    boolean
    Package.isAnnotationPresent(Class<? extendsAnnotation> annotationClass)
    Returns true if an annotation for the specified type ispresent on this element, else false.
    boolean
    Class.isAssignableFrom(Class<?> cls)
    Determines if the class or interface represented by thisClass object is either the same as, or is a superclass or superinterface of, the class or interface represented by the specifiedClass parameter.
    boolean
    Class.isNestmateOf(Class<?> c)
    Determines if the givenClass is a nestmate of the class or interface represented by thisClass object.
    void
    ClassValue.remove(Class<?> type)
    Removes the associated value for the given class.
    protected final void
    ClassLoader.resolveClass(Class<?> c)
    Links the specified class.
    protected final void
    ClassLoader.setSigners(Class<?> c,Object[] signers)
    Sets the signers of a class.
    static <T extendsEnum<T>>
    T
    Enum.valueOf(Class<T> enumClass,String name)
    Returns the enum constant of the specified enum class with the specified name.
    Constructors injava.lang with parameters of typeClass
    Modifier
    Constructor
    Description
     
    EnumConstantNotPresentException(Class<? extendsEnum> enumType,String constantName)
    Constructs anEnumConstantNotPresentException for the specified constant.
  • Uses ofClass injava.lang.annotation

    Methods injava.lang.annotation that returnClass
    Modifier and Type
    Method
    Description
    Class<? extendsAnnotation>
    Annotation.annotationType()
    Returns the annotation interface of this annotation.
    Class<? extendsAnnotation>
    IncompleteAnnotationException.annotationType()
    Returns the Class object for the annotation interface with the missing element.
    Constructors injava.lang.annotation with parameters of typeClass
    Modifier
    Constructor
    Description
     
    IncompleteAnnotationException(Class<? extendsAnnotation> annotationType,String elementName)
    Constructs an IncompleteAnnotationException to indicate that the named element was missing from the specified annotation interface.
  • Uses ofClass injava.lang.classfilePREVIEW

    Methods injava.lang.classfilePREVIEW with parameters of typeClass
    Modifier and Type
    Method
    Description
    <T extendsPoolEntryPREVIEW>
    T
    ClassReader.readEntry(int offset,Class<T> cls)
    Returns the constant pool entry of a given type whose index is given at the specified offset within the classfile.
    <T extendsPoolEntryPREVIEW>
    T
    ClassReader.readEntryOrNull(int offset,Class<T> cls)
    Returns the constant pool entry of a given type whose index is given at the specified offset within the classfile, or null if the index at the specified offset is zero.
  • Uses ofClass injava.lang.classfile.constantpoolPREVIEW

    Methods injava.lang.classfile.constantpoolPREVIEW with parameters of typeClass
    Modifier and Type
    Method
    Description
    <T extendsPoolEntryPREVIEW>
    T
    ConstantPool.entryByIndex(int index,Class<T> cls)
    Returns the entry of a given type at the specified index.
  • Uses ofClass injava.lang.constant

    Methods injava.lang.constant that returnClass
    Modifier and Type
    Method
    Description
     
  • Uses ofClass injava.lang.foreign

    Methods injava.lang.foreign that returnClass
    Modifier and Type
    Method
    Description
    ValueLayout.carrier()
    Returns the carrier associated with this value layout.
  • Uses ofClass injava.lang.instrument

    Methods injava.lang.instrument that returnClass
    Modifier and Type
    Method
    Description
    Instrumentation.getAllLoadedClasses()
    Returns an array of all classes currently loaded by the JVM.
    ClassDefinition.getDefinitionClass()
    Returns the class.
    Instrumentation.getInitiatedClasses(ClassLoader loader)
    Returns an array of all classes whichloader can find by name viaClassLoader::loadClass,Class::forName and bytecode linkage.
    Methods injava.lang.instrument with parameters of typeClass
    Modifier and Type
    Method
    Description
    boolean
    Instrumentation.isModifiableClass(Class<?> theClass)
    Tests whether a class is modifiable byretransformation orredefinition.
    void
    Instrumentation.retransformClasses(Class<?>... classes)
    Retransform the supplied set of classes.
    default byte[]
    ClassFileTransformer.transform(ClassLoader loader,String className,Class<?> classBeingRedefined,ProtectionDomain protectionDomain, byte[] classfileBuffer)
    Transforms the given class file and returns a new replacement class file.
    default byte[]
    ClassFileTransformer.transform(Module module,ClassLoader loader,String className,Class<?> classBeingRedefined,ProtectionDomain protectionDomain, byte[] classfileBuffer)
    Transforms the given class file and returns a new replacement class file.
    Constructors injava.lang.instrument with parameters of typeClass
    Modifier
    Constructor
    Description
     
    ClassDefinition(Class<?> theClass, byte[] theClassFile)
    Creates a newClassDefinition binding using the supplied class and class file bytes.
  • Uses ofClass injava.lang.invoke

    Classes injava.lang.invoke that implement interfaces with type arguments of typeClass
    Modifier and Type
    Class
    Description
    final class 
    A method type represents the arguments and return type accepted and returned by a method handle, or the arguments and return type passed and expected by a method handle caller.
    Methods injava.lang.invoke that returnClass
    Modifier and Type
    Method
    Description
    <T> Class<T>
    MethodHandles.Lookup.accessClass(Class<T> targetClass)
    Determines if a class can be accessed from the lookup context defined by thisLookup object.
    MethodHandles.Lookup.defineClass(byte[] bytes)
    Creates and links a class or interface frombytes with the same class loader and in the same runtime package andprotection domain as this lookup'slookup class as if callingClassLoader::defineClass.
    <T> Class<T>
    MethodHandles.Lookup.ensureInitialized(Class<T> targetClass)
    Ensures thattargetClass has been initialized.
    MethodHandles.Lookup.findClass(String targetName)
    Looks up a class by name from the lookup context defined by thisLookup object,as if resolved by anldc instruction.
    MethodHandleInfo.getDeclaringClass()
    Returns the class in which the cracked method handle's underlying member was defined.
    MethodType.lastParameterType()
    Returns the last parameter type of this method type.
    MethodHandles.Lookup.lookupClass()
    Tells which class is performing the lookup.
    Class<?>[]
    MethodType.parameterArray()
    Presents the parameter types as an array (a convenience method).
    MethodType.parameterType(int num)
    Returns the parameter type at the specified index, within this method type.
    MethodHandles.Lookup.previousLookupClass()
    Reports a lookup class in another module that this lookup object was previously teleported from, ornull.
    staticClass<?>
    ConstantBootstraps.primitiveClass(MethodHandles.Lookup lookup,String name,Class<?> type)
    Returns aClass mirror for the primitive type whose type descriptor is specified byname.
    MethodType.returnType()
    Returns the return type of this method type.
    VarHandle.varType()
    Returns the variable type of variables referenced by this VarHandle.
    staticClass<?>
    MethodHandleProxies.wrapperInstanceType(Object x)
    Recovers the unique single-method interface type for which this wrapper instance was created.
    Methods injava.lang.invoke that return types with arguments of typeClass
    Modifier and Type
    Method
    Description
    VarHandle.coordinateTypes()
    Returns the coordinate types for this VarHandle.
    MethodType.parameterList()
    Presents the parameter types as a list (a convenience method).
    Methods injava.lang.invoke with parameters of typeClass
    Modifier and Type
    Method
    Description
    <T> Class<T>
    MethodHandles.Lookup.accessClass(Class<T> targetClass)
    Determines if a class can be accessed from the lookup context defined by thisLookup object.
    MethodType.appendParameterTypes(Class<?>... ptypesToInsert)
    Finds or creates a method type with additional parameter types.
    MethodHandles.arrayConstructor(Class<?> arrayClass)
    Produces a method handle constructing arrays of a desired type, as if by theanewarray bytecode.
    MethodHandles.arrayElementGetter(Class<?> arrayClass)
    Produces a method handle giving read access to elements of an array, as if by theaaload bytecode.
    MethodHandles.arrayElementSetter(Class<?> arrayClass)
    Produces a method handle giving write access to elements of an array, as if by theastore bytecode.
    staticVarHandle
    MethodHandles.arrayElementVarHandle(Class<?> arrayClass)
    Produces a VarHandle giving access to elements of an array of typearrayClass.
    MethodHandles.arrayLength(Class<?> arrayClass)
    Produces a method handle returning the length of an array, as if by thearraylength bytecode.
    staticVarHandle
    ConstantBootstraps.arrayVarHandle(MethodHandles.Lookup lookup,String name,Class<VarHandle> type,Class<?> arrayClass)
    Finds aVarHandle for an array type.
    MethodHandle.asCollector(int collectArgPos,Class<?> arrayType, int arrayLength)
    Makes anarray-collecting method handle, which accepts a given number of positional arguments starting at a given position, and collects them into an array argument.
    MethodHandle.asCollector(Class<?> arrayType, int arrayLength)
    Makes anarray-collecting method handle, which accepts a given number of trailing positional arguments and collects them into an array argument.
    static <T> T
    MethodHandleProxies.asInterfaceInstance(Class<T> intfc,MethodHandle target)
    Produces an instance of the given single-method interface which redirects its calls to the given method handle.
    MethodHandle.asSpreader(int spreadArgPos,Class<?> arrayType, int arrayLength)
    Makes anarray-spreading method handle, which accepts an array argument at a given position and spreads its elements as positional arguments in place of the array.
    MethodHandle.asSpreader(Class<?> arrayType, int arrayLength)
    Makes anarray-spreading method handle, which accepts a trailing array argument and spreads its elements as positional arguments.
    MethodHandle.asVarargsCollector(Class<?> arrayType)
    Makes avariable arity adapter which is able to accept any number of trailing positional arguments and collect them into an array argument.
    staticVarHandle
    MethodHandles.byteArrayViewVarHandle(Class<?> viewArrayClass,ByteOrder byteOrder)
    Produces a VarHandle giving access to elements of abyte[] array viewed as if it were a different primitive array type, such asint[] orlong[].
    staticVarHandle
    MethodHandles.byteBufferViewVarHandle(Class<?> viewArrayClass,ByteOrder byteOrder)
    Produces a VarHandle giving access to elements of aByteBuffer viewed as if it were an array of elements of a different primitive component type to that ofbyte, such asint[] orlong[].
    MethodHandles.catchException(MethodHandle target,Class<? extendsThrowable> exType,MethodHandle handler)
    Makes a method handle which adapts a target method handle, by running it inside an exception handler.
    MethodType.changeParameterType(int num,Class<?> nptype)
    Finds or creates a method type with a single different parameter type.
    MethodType.changeReturnType(Class<?> nrtype)
    Finds or creates a method type with a different return type.
    static <T> T
    MethodHandles.classData(MethodHandles.Lookup caller,String name,Class<T> type)
    Returns theclass data associated with the lookup class of the givencaller lookup object, ornull.
    static <T> T
    MethodHandles.classDataAt(MethodHandles.Lookup caller,String name,Class<T> type, int index)
    Returns the element at the specified index in theclass data, if the class data associated with the lookup class of the givencaller lookup object is aList.
    MethodHandles.constant(Class<?> type,Object value)
    Produces a method handle of the requested return type which returns the given constant value every time it is invoked.
    MethodHandles.dropArguments(MethodHandle target, int pos,Class<?>... valueTypes)
    Produces a method handle which will discard some dummy arguments before calling some other specifiedtarget method handle.
    staticVarHandle
    MethodHandles.dropCoordinates(VarHandle target, int pos,Class<?>... valueTypes)
    Returns a var handle which will discard some dummy coordinates before delegating to the target var handle.
    <T> Class<T>
    MethodHandles.Lookup.ensureInitialized(Class<T> targetClass)
    Ensures thattargetClass has been initialized.
    static <E extendsEnum<E>>
    E
    ConstantBootstraps.enumConstant(MethodHandles.Lookup lookup,String name,Class<E> type)
    Returns anenum constant of the type specified bytype with the name specified byname.
    staticObject
    ConstantBootstraps.explicitCast(MethodHandles.Lookup lookup,String name,Class<?> dstType,Object value)
    Applies a conversion from a source type to a destination type.
    staticVarHandle
    ConstantBootstraps.fieldVarHandle(MethodHandles.Lookup lookup,String name,Class<VarHandle> type,Class<?> declaringClass,Class<?> fieldType)
    Finds aVarHandle for an instance field.
    MethodHandles.Lookup.findConstructor(Class<?> refc,MethodType type)
    Produces a method handle which creates an object and initializes it, using the constructor of the specified type.
    MethodHandles.Lookup.findGetter(Class<?> refc,String name,Class<?> type)
    Produces a method handle giving read access to a non-static field.
    MethodHandles.Lookup.findSetter(Class<?> refc,String name,Class<?> type)
    Produces a method handle giving write access to a non-static field.
    MethodHandles.Lookup.findSpecial(Class<?> refc,String name,MethodType type,Class<?> specialCaller)
    Produces an early-bound method handle for a virtual method.
    MethodHandles.Lookup.findStatic(Class<?> refc,String name,MethodType type)
    Produces a method handle for a static method.
    MethodHandles.Lookup.findStaticGetter(Class<?> refc,String name,Class<?> type)
    Produces a method handle giving read access to a static field.
    MethodHandles.Lookup.findStaticSetter(Class<?> refc,String name,Class<?> type)
    Produces a method handle giving write access to a static field.
    MethodHandles.Lookup.findStaticVarHandle(Class<?> decl,String name,Class<?> type)
    Produces a VarHandle giving access to a static fieldname of typetype declared in a class of typedecl.
    MethodHandles.Lookup.findVarHandle(Class<?> recv,String name,Class<?> type)
    Produces a VarHandle giving access to a non-static fieldname of typetype declared in a class of typerecv.
    MethodHandles.Lookup.findVirtual(Class<?> refc,String name,MethodType type)
    Produces a method handle for a virtual method.
    staticObject
    ConstantBootstraps.getStaticFinal(MethodHandles.Lookup lookup,String name,Class<?> type)
    Returns the value of a static final field declared in the class which is the same as the field's type (or, for primitive-valued fields, declared in the wrapper class.)
    staticObject
    ConstantBootstraps.getStaticFinal(MethodHandles.Lookup lookup,String name,Class<?> type,Class<?> declaringClass)
    Returns the value of a static final field.
    MethodHandles.identity(Class<?> type)
    Produces a method handle which returns its sole argument when invoked.
    MethodHandles.Lookup.in(Class<?> requestedLookupClass)
    Creates a lookup on the specified new lookup class.
    MethodType.insertParameterTypes(int num,Class<?>... ptypesToInsert)
    Finds or creates a method type with additional parameter types.
    staticObject
    ConstantBootstraps.invoke(MethodHandles.Lookup lookup,String name,Class<?> type,MethodHandle handle,Object... args)
    Returns the result of invoking a method handle with the provided arguments.
    MethodType.methodType(Class<?> rtype)
    Finds or creates a method type with the given components.
    MethodType.methodType(Class<?> rtype,Class<?> ptype0)
    Finds or creates a method type with the given components.
    MethodType.methodType(Class<?> rtype,Class<?>[] ptypes)
    Finds or creates an instance of the given method type.
    MethodType.methodType(Class<?> rtype,Class<?> ptype0,Class<?>... ptypes)
    Finds or creates a method type with the given components.
    MethodType.methodType(Class<?> rtype,MethodType ptypes)
    Finds or creates a method type with the given components.
    MethodType.methodType(Class<?> rtype,List<Class<?>> ptypes)
    Finds or creates a method type with the given components.
    staticObject
    ConstantBootstraps.nullConstant(MethodHandles.Lookup lookup,String name,Class<?> type)
    Returns anull object reference for the reference type specified bytype.
    staticClass<?>
    ConstantBootstraps.primitiveClass(MethodHandles.Lookup lookup,String name,Class<?> type)
    Returns aClass mirror for the primitive type whose type descriptor is specified byname.
    MethodHandles.privateLookupIn(Class<?> targetClass,MethodHandles.Lookup caller)
    Returns alookup object on a target class to emulate all supported bytecode behaviors, includingprivate access.
    <T extendsMember>
    T
    MethodHandleInfo.reflectAs(Class<T> expected,MethodHandles.Lookup lookup)
    Reflects the underlying member as a method, constructor, or field object.
    static <T extendsMember>
    T
    MethodHandles.reflectAs(Class<T> expected,MethodHandle target)
    Performs an unchecked "crack" of adirect method handle.
    staticVarHandle
    ConstantBootstraps.staticFieldVarHandle(MethodHandles.Lookup lookup,String name,Class<VarHandle> type,Class<?> declaringClass,Class<?> fieldType)
    Finds aVarHandle for a static field.
    MethodHandles.throwException(Class<?> returnType,Class<? extendsThrowable> exType)
    Produces a method handle which will throw exceptions of the givenexType.
    staticString
    MethodHandleInfo.toString(int kind,Class<?> defc,String name,MethodType type)
    Returns a string representation for aMethodHandleInfo, given the four parts of its symbolic reference.
    MethodHandles.Lookup.unreflectSpecial(Method m,Class<?> specialCaller)
    Produces a method handle for a reflected method.
    MethodHandles.zero(Class<?> type)
    Produces a constant method handle of the requested return type which returns the default value for that type every time it is invoked.
    Method parameters injava.lang.invoke with type arguments of typeClass
    Modifier and Type
    Method
    Description
    MethodType.appendParameterTypes(List<Class<?>> ptypesToInsert)
    Finds or creates a method type with additional parameter types.
    MethodHandles.dropArguments(MethodHandle target, int pos,List<Class<?>> valueTypes)
    Produces a method handle which will discard some dummy arguments before calling some other specifiedtarget method handle.
    MethodHandles.dropArgumentsToMatch(MethodHandle target, int skip,List<Class<?>> newTypes, int pos)
    Adapts a target method handle to match the given parameter type list.
    MethodType.insertParameterTypes(int num,List<Class<?>> ptypesToInsert)
    Finds or creates a method type with additional parameter types.
    MethodType.methodType(Class<?> rtype,List<Class<?>> ptypes)
    Finds or creates a method type with the given components.
    staticVarHandle
    MethodHandles.permuteCoordinates(VarHandle target,List<Class<?>> newCoordinates, int... reorder)
    Provides a var handle which adapts the coordinate values of the target var handle, by re-arranging them so that the new coordinates match the provided ones.
    Constructors injava.lang.invoke with parameters of typeClass
    Modifier
    Constructor
    Description
     
    SerializedLambda(Class<?> capturingClass,String functionalInterfaceClass,String functionalInterfaceMethodName,String functionalInterfaceMethodSignature, int implMethodKind,String implClass,String implMethodName,String implMethodSignature,String instantiatedMethodType,Object[] capturedArgs)
    Create aSerializedLambda from the low-level information present at the lambda factory site.
  • Uses ofClass injava.lang.management

    Methods injava.lang.management that return types with arguments of typeClass
    Modifier and Type
    Method
    Description
    Returns the set ofClass objects, subinterface ofPlatformManagedObject, representing all management interfaces for monitoring and managing the Java platform.
    Methods injava.lang.management with parameters of typeClass
    Modifier and Type
    Method
    Description
    static <T extendsPlatformManagedObject>
    T
    ManagementFactory.getPlatformMXBean(Class<T> mxbeanInterface)
    Returns the platform MXBean implementing the givenmxbeanInterface which is specified to have one single instance in the Java virtual machine.
    static <T extendsPlatformManagedObject>
    T
    ManagementFactory.getPlatformMXBean(MBeanServerConnection connection,Class<T> mxbeanInterface)
    Returns the platform MXBean proxy formxbeanInterface which is specified to have one single instance in a Java virtual machine and the proxy will forward the method calls through the givenMBeanServerConnection.
    static <T extendsPlatformManagedObject>
    List<T>
    ManagementFactory.getPlatformMXBeans(Class<T> mxbeanInterface)
    Returns the list of platform MXBeans implementing the givenmxbeanInterface in the Java virtual machine.
    static <T extendsPlatformManagedObject>
    List<T>
    ManagementFactory.getPlatformMXBeans(MBeanServerConnection connection,Class<T> mxbeanInterface)
    Returns the list of the platform MXBean proxies for forwarding the method calls of themxbeanInterface through the givenMBeanServerConnection.
    static <T> T
    ManagementFactory.newPlatformMXBeanProxy(MBeanServerConnection connection,String mxbeanName,Class<T> mxbeanInterface)
    Returns a proxy for a platform MXBean interface of a givenMXBean name that forwards its method calls through the givenMBeanServerConnection.
  • Uses ofClass injava.lang.reflect

    Methods injava.lang.reflect that returnClass
    Modifier and Type
    Method
    Description
    Constructor.getDeclaringClass()
    Returns theClass object representing the class that declares the constructor represented by this object.
    abstractClass<?>
    Executable.getDeclaringClass()
    Returns theClass object representing the class or interface that declares the executable represented by this object.
    Returns theClass object representing the class or interface that declares the field represented by thisField object.
    Returns the Class object representing the class or interface that declares the member or constructor represented by this Member.
    Returns theClass object representing the class or interface that declares the method represented by this object.
    RecordComponent.getDeclaringRecord()
    Returns the record class which declares this record component.
    Class<?>[]
    Constructor.getExceptionTypes()
    Returns an array ofClass objects that represent the types of exceptions declared to be thrown by the underlying executable represented by this object.
    abstractClass<?>[]
    Executable.getExceptionTypes()
    Returns an array ofClass objects that represent the types of exceptions declared to be thrown by the underlying executable represented by this object.
    Class<?>[]
    Returns an array ofClass objects that represent the types of exceptions declared to be thrown by the underlying executable represented by this object.
    Class<?>[]
    Constructor.getParameterTypes()
    Returns an array ofClass objects that represent the formal parameter types, in declaration order, of the executable represented by this object.
    abstractClass<?>[]
    Executable.getParameterTypes()
    Returns an array ofClass objects that represent the formal parameter types, in declaration order, of the executable represented by this object.
    Class<?>[]
    Returns an array ofClass objects that represent the formal parameter types, in declaration order, of the executable represented by this object.
    staticClass<?>
    Proxy.getProxyClass(ClassLoader loader,Class<?>... interfaces)
    Deprecated.
    Proxy classes generated in a named module are encapsulated and not accessible to code outside its module.
    Method.getReturnType()
    Returns aClass object that represents the formal return type of the method represented by thisMethod object.
    Field.getType()
    Returns aClass object that identifies the declared type for the field represented by thisField object.
    Parameter.getType()
    Returns aClass object that identifies the declared type for the parameter represented by thisParameter object.
    RecordComponent.getType()
    Returns aClass that identifies the declared type for this record component.
    Methods injava.lang.reflect with parameters of typeClass
    Modifier and Type
    Method
    Description
    <T extendsAnnotation>
    T
    AccessibleObject.getAnnotation(Class<T> annotationClass)
    Returns this element's annotation for the specified type if such an annotation ispresent, else null.
    <T extendsAnnotation>
    T
    AnnotatedElement.getAnnotation(Class<T> annotationClass)
    Returns this element's annotation for the specified type if such an annotation ispresent, else null.
    <T extendsAnnotation>
    T
    AnnotatedType.getAnnotation(Class<T> annotationClass)
    Returns this element's annotation for the specified type if such an annotation ispresent, else null.
    <T extendsAnnotation>
    T
    Constructor.getAnnotation(Class<T> annotationClass)
    Returns this element's annotation for the specified type if such an annotation ispresent, else null.
    <T extendsAnnotation>
    T
    Executable.getAnnotation(Class<T> annotationClass)
    Returns this element's annotation for the specified type if such an annotation ispresent, else null.
    <T extendsAnnotation>
    T
    Field.getAnnotation(Class<T> annotationClass)
    Returns this element's annotation for the specified type if such an annotation ispresent, else null.
    <T extendsAnnotation>
    T
    Method.getAnnotation(Class<T> annotationClass)
    Returns this element's annotation for the specified type if such an annotation ispresent, else null.
    <T extendsAnnotation>
    T
    Parameter.getAnnotation(Class<T> annotationClass)
    Returns this element's annotation for the specified type if such an annotation ispresent, else null.
    <T extendsAnnotation>
    T
    RecordComponent.getAnnotation(Class<T> annotationClass)
    Returns this element's annotation for the specified type if such an annotation ispresent, else null.
    <T extendsAnnotation>
    T[]
    AccessibleObject.getAnnotationsByType(Class<T> annotationClass)
    Returns annotations that areassociated with this element.
    default <T extendsAnnotation>
    T[]
    AnnotatedElement.getAnnotationsByType(Class<T> annotationClass)
    Returns annotations that areassociated with this element.
    <T extendsAnnotation>
    T[]
    Executable.getAnnotationsByType(Class<T> annotationClass)
    Returns annotations that areassociated with this element.
    <T extendsAnnotation>
    T[]
    Field.getAnnotationsByType(Class<T> annotationClass)
    Returns annotations that areassociated with this element.
    <T extendsAnnotation>
    T[]
    Parameter.getAnnotationsByType(Class<T> annotationClass)
    Returns annotations that areassociated with this element.
    <T extendsAnnotation>
    T
    AccessibleObject.getDeclaredAnnotation(Class<T> annotationClass)
    Returns this element's annotation for the specified type if such an annotation isdirectly present, else null.
    default <T extendsAnnotation>
    T
    AnnotatedElement.getDeclaredAnnotation(Class<T> annotationClass)
    Returns this element's annotation for the specified type if such an annotation isdirectly present, else null.
    <T extendsAnnotation>
    T
    Parameter.getDeclaredAnnotation(Class<T> annotationClass)
    Returns this element's annotation for the specified type if such an annotation isdirectly present, else null.
    <T extendsAnnotation>
    T[]
    AccessibleObject.getDeclaredAnnotationsByType(Class<T> annotationClass)
    Returns this element's annotation(s) for the specified type if such annotations are eitherdirectly present orindirectly present.
    default <T extendsAnnotation>
    T[]
    AnnotatedElement.getDeclaredAnnotationsByType(Class<T> annotationClass)
    Returns this element's annotation(s) for the specified type if such annotations are eitherdirectly present orindirectly present.
    <T extendsAnnotation>
    T[]
    Parameter.getDeclaredAnnotationsByType(Class<T> annotationClass)
    Returns this element's annotation(s) for the specified type if such annotations are eitherdirectly present orindirectly present.
    staticClass<?>
    Proxy.getProxyClass(ClassLoader loader,Class<?>... interfaces)
    Deprecated.
    Proxy classes generated in a named module are encapsulated and not accessible to code outside its module.
    boolean
    AccessibleObject.isAnnotationPresent(Class<? extendsAnnotation> annotationClass)
    Returns true if an annotation for the specified type ispresent on this element, else false.
    default boolean
    AnnotatedElement.isAnnotationPresent(Class<? extendsAnnotation> annotationClass)
    Returns true if an annotation for the specified type ispresent on this element, else false.
    static boolean
    Proxy.isProxyClass(Class<?> cl)
    Returns true if the given class is a proxy class.
    staticObject
    Array.newInstance(Class<?> componentType, int length)
    Creates a new array with the specified component type and length.
    staticObject
    Array.newInstance(Class<?> componentType, int... dimensions)
    Creates a new array with the specified component type and dimensions.
    staticObject
    Proxy.newProxyInstance(ClassLoader loader,Class<?>[] interfaces,InvocationHandler h)
    Returns a proxy instance for the specified interfaces that dispatches method invocations to the specified invocation handler.
  • Uses ofClass injava.lang.runtime

    Methods injava.lang.runtime with parameters of typeClass
    Modifier and Type
    Method
    Description
    staticObject
    ObjectMethods.bootstrap(MethodHandles.Lookup lookup,String methodName,TypeDescriptor type,Class<?> recordClass,String names,MethodHandle... getters)
    Bootstrap method to generate theObject.equals(Object),Object.hashCode(), andObject.toString() methods, based on a description of the component names and accessor methods, for eitherinvokedynamic call sites or dynamic constant pool entries.
  • Uses ofClass injava.net

    Methods injava.net that returnClass
    Modifier and Type
    Method
    Description
    protectedClass<?>
    URLClassLoader.findClass(String name)
    Finds and loads the class with the specified name from the URL search path.
    SocketOption.type()
    Returns the type of the socket option value.
    Methods injava.net with parameters of typeClass
    Modifier and Type
    Method
    Description
    ContentHandler.getContent(URLConnection urlc,Class[] classes)
    Given a URL connect stream positioned at the beginning of the representation of an object, this method reads that stream and creates an object that matches one of the types specified.
    finalObject
    URL.getContent(Class<?>[] classes)
    Gets the contents of this URL.
    URLConnection.getContent(Class<?>[] classes)
    Retrieves the contents of this URL connection.
  • Uses ofClass injava.nio.file

    Methods injava.nio.file that returnClass
    Modifier and Type
    Method
    Description
    WatchEvent.Kind.type()
    Returns the type of thecontext value.
    Methods injava.nio.file with parameters of typeClass
    Modifier and Type
    Method
    Description
    static <V extendsFileAttributeView>
    V
    Files.getFileAttributeView(Path path,Class<V> type,LinkOption... options)
    Returns a file attribute view of a given type.
    <V extendsFileAttributeView>
    V
    SecureDirectoryStream.getFileAttributeView(Class<V> type)
    Returns a new file attribute view to access the file attributes of this directory.
    <V extendsFileAttributeView>
    V
    SecureDirectoryStream.getFileAttributeView(T path,Class<V> type,LinkOption... options)
    Returns a new file attribute view to access the file attributes of a file in this directory.
    abstract <V extendsFileStoreAttributeView>
    V
    FileStore.getFileStoreAttributeView(Class<V> type)
    Returns aFileStoreAttributeView of the given type.
    static <A extendsBasicFileAttributes>
    A
    Files.readAttributes(Path path,Class<A> type,LinkOption... options)
    Reads a file's attributes as a bulk operation.
    abstract boolean
    Tells whether or not this file store supports the file attributes identified by the given file attribute view.
  • Uses ofClass injava.nio.file.spi

    Methods injava.nio.file.spi with parameters of typeClass
    Modifier and Type
    Method
    Description
    abstract <V extendsFileAttributeView>
    V
    FileSystemProvider.getFileAttributeView(Path path,Class<V> type,LinkOption... options)
    Returns a file attribute view of a given type.
    abstract <A extendsBasicFileAttributes>
    A
    FileSystemProvider.readAttributes(Path path,Class<A> type,LinkOption... options)
    Reads a file's attributes as a bulk operation.
    FileSystemProvider.readAttributesIfExists(Path path,Class<A> type,LinkOption... options)
    Reads a file's attributes as a bulk operation if it exists.
  • Uses ofClass injava.rmi.server

    Methods injava.rmi.server that returnClass
    Modifier and Type
    Method
    Description
    LoaderHandler.loadClass(String name)
    Deprecated.
    no replacement
    LoaderHandler.loadClass(URL codebase,String name)
    Deprecated.
    no replacement
    staticClass<?>
    RMIClassLoader.loadClass(String name)
    Deprecated.
    replaced byloadClass(String,String) method
    staticClass<?>
    RMIClassLoader.loadClass(String codebase,String name)
    Loads a class from a codebase URL path.
    staticClass<?>
    RMIClassLoader.loadClass(String codebase,String name,ClassLoader defaultLoader)
    Loads a class from a codebase URL path, optionally using the supplied loader.
    staticClass<?>
    RMIClassLoader.loadClass(URL codebase,String name)
    Loads a class from a codebase URL.
    abstractClass<?>
    RMIClassLoaderSpi.loadClass(String codebase,String name,ClassLoader defaultLoader)
    staticClass<?>
    RMIClassLoader.loadProxyClass(String codebase,String[] interfaces,ClassLoader defaultLoader)
    Loads a dynamic proxy class (seeProxy) that implements a set of interfaces with the given names from a codebase URL path.
    abstractClass<?>
    RMIClassLoaderSpi.loadProxyClass(String codebase,String[] interfaces,ClassLoader defaultLoader)
    Methods injava.rmi.server with parameters of typeClass
    Modifier and Type
    Method
    Description
    staticString
    RMIClassLoader.getClassAnnotation(Class<?> cl)
    Returns the annotation string (representing a location for the class definition) that RMI will use to annotate the class descriptor when marshalling objects of the given class.
    abstractString
    RMIClassLoaderSpi.getClassAnnotation(Class<?> cl)
    Provides the implementation forRMIClassLoader.getClassAnnotation(Class).
  • Uses ofClass injava.security

    Methods injava.security that returnClass
    Modifier and Type
    Method
    Description
    protected finalClass<?>
    SecureClassLoader.defineClass(String name, byte[] b, int off, int len,CodeSource cs)
    Converts an array of bytes into an instance of classClass, with an optional CodeSource.
    protected finalClass<?>
    SecureClassLoader.defineClass(String name,ByteBuffer b,CodeSource cs)
    Converts aByteBuffer into an instance of classClass, with an optional CodeSource.
    Methods injava.security with parameters of typeClass
    Modifier and Type
    Method
    Description
    boolean
    KeyStoreSpi.engineEntryInstanceOf(String alias,Class<? extendsKeyStore.Entry> entryClass)
    Determines if the keystoreEntry for the specifiedalias is an instance or subclass of the specifiedentryClass.
    protected abstract <T extendsKeySpec>
    T
    KeyFactorySpi.engineGetKeySpec(Key key,Class<T> keySpec)
    Returns a specification (key material) of the given key object.
    protected abstract <T extendsAlgorithmParameterSpec>
    T
    AlgorithmParametersSpi.engineGetParameterSpec(Class<T> paramSpec)
    Returns a (transparent) specification of this parameters object.
    final boolean
    KeyStore.entryInstanceOf(String alias,Class<? extendsKeyStore.Entry> entryClass)
    Determines if the keystoreEntry for the specifiedalias is an instance or subclass of the specifiedentryClass.
    final <T extendsKeySpec>
    T
    KeyFactory.getKeySpec(Key key,Class<T> keySpec)
    Returns a specification (key material) of the given key object.
    final <T extendsAlgorithmParameterSpec>
    T
    AlgorithmParameters.getParameterSpec(Class<T> paramSpec)
    Returns a (transparent) specification of this parameter object.
  • Uses ofClass injava.sql

    Methods injava.sql that return types with arguments of typeClass
    Modifier and Type
    Method
    Description
    Connection.getTypeMap()
    Retrieves theMap object associated with thisConnection object.
    Methods injava.sql with parameters of typeClass
    Modifier and Type
    Method
    Description
    <T> T
    CallableStatement.getObject(int parameterIndex,Class<T> type)
    Returns an object representing the value of OUT parameterparameterIndex and will convert from the SQL type of the parameter to the requested Java data type, if the conversion is supported.
    <T> T
    CallableStatement.getObject(String parameterName,Class<T> type)
    Returns an object representing the value of OUT parameterparameterName and will convert from the SQL type of the parameter to the requested Java data type, if the conversion is supported.
    <T> T
    ResultSet.getObject(int columnIndex,Class<T> type)
    Retrieves the value of the designated column in the current row of thisResultSet object and will convert from the SQL type of the column to the requested Java data type, if the conversion is supported.
    <T> T
    ResultSet.getObject(String columnLabel,Class<T> type)
    Retrieves the value of the designated column in the current row of thisResultSet object and will convert from the SQL type of the column to the requested Java data type, if the conversion is supported.
    <T extendsSource>
    T
    SQLXML.getSource(Class<T> sourceClass)
    Returns a Source for reading the XML value designated by this SQLXML instance.
    boolean
    Wrapper.isWrapperFor(Class<?> iface)
    Returns true if this either implements the interface argument or is directly or indirectly a wrapper for an object that does.
    default <T> T
    SQLInput.readObject(Class<T> type)
    Reads the next attribute in the stream and returns it as anObject in the Java programming language.
    <T extendsResult>
    T
    SQLXML.setResult(Class<T> resultClass)
    Returns a Result for setting the XML value designated by this SQLXML instance.
    <T> T
    Wrapper.unwrap(Class<T> iface)
    Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy.
    Method parameters injava.sql with type arguments of typeClass
    Modifier and Type
    Method
    Description
    Array.getArray(long index, int count,Map<String,Class<?>> map)
    Retrieves a slice of the SQLARRAY value designated by thisArray object, beginning with the specifiedindex and containing up tocount successive elements of the SQL array.
    Array.getArray(Map<String,Class<?>> map)
    Retrieves the contents of the SQLARRAY value designated by thisArray object.
    Struct.getAttributes(Map<String,Class<?>> map)
    Produces the ordered values of the attributes of the SQL structured type that thisStruct object represents.
    CallableStatement.getObject(int parameterIndex,Map<String,Class<?>> map)
    Returns an object representing the value of OUT parameterparameterIndex and usesmap for the custom mapping of the parameter value.
    CallableStatement.getObject(String parameterName,Map<String,Class<?>> map)
    Returns an object representing the value of OUT parameterparameterName and usesmap for the custom mapping of the parameter value.
    Ref.getObject(Map<String,Class<?>> map)
    Retrieves the referenced object and maps it to a Java type using the given type map.
    ResultSet.getObject(int columnIndex,Map<String,Class<?>> map)
    Retrieves the value of the designated column in the current row of thisResultSet object as anObject in the Java programming language.
    ResultSet.getObject(String columnLabel,Map<String,Class<?>> map)
    Retrieves the value of the designated column in the current row of thisResultSet object as anObject in the Java programming language.
    Array.getResultSet(long index, int count,Map<String,Class<?>> map)
    Retrieves a result set holding the elements of the subarray that starts at indexindex and contains up tocount successive elements.
    Array.getResultSet(Map<String,Class<?>> map)
    Retrieves a result set that contains the elements of the SQLARRAY value designated by thisArray object.
    void
    Connection.setTypeMap(Map<String,Class<?>> map)
    Installs the givenTypeMap object as the type map for thisConnection object.
  • Uses ofClass injava.util

    Methods injava.util that returnClass
    Modifier and Type
    Method
    Description
    IllegalFormatConversionException.getArgumentClass()
    Returns the class of the mismatched argument.
    Class<? extendsS>
    ServiceLoader.Provider.type()
    Returns the provider type.
    Methods injava.util with parameters of typeClass
    Modifier and Type
    Method
    Description
    static <E extendsEnum<E>>
    EnumSet<E>
    EnumSet.allOf(Class<E> elementType)
    Creates an enum set containing all of the elements in the specified element type.
    static <E> Collection<E>
    Collections.checkedCollection(Collection<E> c,Class<E> type)
    Returns a dynamically typesafe view of the specified collection.
    static <E> List<E>
    Collections.checkedList(List<E> list,Class<E> type)
    Returns a dynamically typesafe view of the specified list.
    static <K,V> Map<K,V>
    Collections.checkedMap(Map<K,V> m,Class<K> keyType,Class<V> valueType)
    Returns a dynamically typesafe view of the specified map.
    static <K,V> NavigableMap<K,V>
    Collections.checkedNavigableMap(NavigableMap<K,V> m,Class<K> keyType,Class<V> valueType)
    Returns a dynamically typesafe view of the specified navigable map.
    static <E> NavigableSet<E>
    Collections.checkedNavigableSet(NavigableSet<E> s,Class<E> type)
    Returns a dynamically typesafe view of the specified navigable set.
    static <E> Queue<E>
    Collections.checkedQueue(Queue<E> queue,Class<E> type)
    Returns a dynamically typesafe view of the specified queue.
    static <E> Set<E>
    Collections.checkedSet(Set<E> s,Class<E> type)
    Returns a dynamically typesafe view of the specified set.
    static <K,V> SortedMap<K,V>
    Collections.checkedSortedMap(SortedMap<K,V> m,Class<K> keyType,Class<V> valueType)
    Returns a dynamically typesafe view of the specified sorted map.
    static <E> SortedSet<E>
    Collections.checkedSortedSet(SortedSet<E> s,Class<E> type)
    Returns a dynamically typesafe view of the specified sorted set.
    static <T,U> T[]
    Arrays.copyOf(U[] original, int newLength,Class<? extends T[]> newType)
    Copies the specified array, truncating or padding with nulls (if necessary) so the copy has the specified length.
    static <T,U> T[]
    Arrays.copyOfRange(U[] original, int from, int to,Class<? extends T[]> newType)
    Copies the specified range of the specified array into a new array.
    static <S> ServiceLoader<S>
    ServiceLoader.load(Class<S> service)
    Creates a new service loader for the given service type, using the current thread'scontext class loader.
    static <S> ServiceLoader<S>
    ServiceLoader.load(Class<S> service,ClassLoader loader)
    Creates a new service loader for the given service.
    static <S> ServiceLoader<S>
    ServiceLoader.load(ModuleLayer layer,Class<S> service)
    Creates a new service loader for the given service type to load service providers from modules in the given module layer and its ancestors.
    static <S> ServiceLoader<S>
    ServiceLoader.loadInstalled(Class<S> service)
    Creates a new service loader for the given service type, using theplatform class loader.
    static <E extendsEnum<E>>
    EnumSet<E>
    EnumSet.noneOf(Class<E> elementType)
    Creates an empty enum set with the specified element type.
    Constructors injava.util with parameters of typeClass
    Modifier
    Constructor
    Description
     
    EnumMap(Class<K> keyType)
    Creates an empty enum map with the specified key type.
     
    Constructs an instance of this class with the mismatched conversion and the corresponding argument class.
  • Uses ofClass injava.util.concurrent.atomic

    Methods injava.util.concurrent.atomic with parameters of typeClass
    Modifier and Type
    Method
    Description
    AtomicIntegerFieldUpdater.newUpdater(Class<U> tclass,String fieldName)
    Creates and returns an updater for objects with the given field.
    static <U> AtomicLongFieldUpdater<U>
    AtomicLongFieldUpdater.newUpdater(Class<U> tclass,String fieldName)
    Creates and returns an updater for objects with the given field.
    static <U,W> AtomicReferenceFieldUpdater<U,W>
    AtomicReferenceFieldUpdater.newUpdater(Class<U> tclass,Class<W> vclass,String fieldName)
    Creates and returns an updater for objects with the given field.
  • Uses ofClass injava.util.prefs

    Methods injava.util.prefs with parameters of typeClass
    Modifier and Type
    Method
    Description
    Preferences.systemNodeForPackage(Class<?> c)
    Returns the preference node from the system preference tree that is associated (by convention) with the specified class's package.
    Preferences.userNodeForPackage(Class<?> c)
    Returns the preference node from the calling user's preference tree that is associated (by convention) with the specified class's package.
  • Uses ofClass injavax.annotation.processing

    Methods injavax.annotation.processing with parameters of typeClass
    Modifier and Type
    Method
    Description
    Set<? extendsElement>
    RoundEnvironment.getElementsAnnotatedWith(Class<? extendsAnnotation> a)
    Returns the elements annotated with the given annotation interface.
    Method parameters injavax.annotation.processing with type arguments of typeClass
    Modifier and Type
    Method
    Description
    defaultSet<? extendsElement>
    RoundEnvironment.getElementsAnnotatedWithAny(Set<Class<? extendsAnnotation>> annotations)
    Returns the elements annotated with one or more of the given annotation interfaces.
  • Uses ofClass injavax.crypto

    Methods injavax.crypto with parameters of typeClass
    Modifier and Type
    Method
    Description
    protected abstractKeySpec
    SecretKeyFactorySpi.engineGetKeySpec(SecretKey key,Class<?> keySpec)
    Returns a specification (key material) of the given key object in the requested format.
    finalKeySpec
    SecretKeyFactory.getKeySpec(SecretKey key,Class<?> keySpec)
    Returns a specification (key material) of the given key object in the requested format.
  • Uses ofClass injavax.imageio.metadata

    Methods injavax.imageio.metadata that returnClass
    Modifier and Type
    Method
    Description
    IIOMetadataFormat.getObjectClass(String elementName)
    Returns theClass type of theObject reference stored within the element.
    IIOMetadataFormatImpl.getObjectClass(String elementName)
     
    Methods injavax.imageio.metadata with parameters of typeClass
    Modifier and Type
    Method
    Description
    protected void
    IIOMetadataFormatImpl.addObjectValue(String elementName,Class<?> classType, int arrayMinLength, int arrayMaxLength)
    Allows anObject reference of a given class type to be stored in nodes implementing the named element.
    protected <T> void
    IIOMetadataFormatImpl.addObjectValue(String elementName,Class<T> classType, boolean required, T defaultValue)
    Allows anObject reference of a given class type to be stored in nodes implementing the named element.
    protected <T> void
    IIOMetadataFormatImpl.addObjectValue(String elementName,Class<T> classType, boolean required, T defaultValue,List<? extends T> enumeratedValues)
    Allows anObject reference of a given class type to be stored in nodes implementing the named element.
    protected <T extendsObject &Comparable<? super T>>
    void
    IIOMetadataFormatImpl.addObjectValue(String elementName,Class<T> classType, T defaultValue,Comparable<? super T> minValue,Comparable<? super T> maxValue, boolean minInclusive, boolean maxInclusive)
    Allows anObject reference of a given class type to be stored in nodes implementing the named element.
  • Uses ofClass injavax.imageio.spi

    Fields injavax.imageio.spi declared asClass
    Modifier and Type
    Field
    Description
    protectedClass<?>
    ImageInputStreamSpi.inputClass
    AClass object indicating the legal object type for use by thecreateInputStreamInstance method.
    protectedClass<?>[]
    ImageReaderSpi.inputTypes
    An array ofClass objects to be returned fromgetInputTypes, initiallynull.
    protectedClass<?>
    ImageOutputStreamSpi.outputClass
    AClass object indicating the legal object type for use by thecreateInputStreamInstance method.
    protectedClass<?>[]
    ImageWriterSpi.outputTypes
    An array ofClass objects to be returned fromgetOutputTypes, initiallynull.
    static finalClass<?>[]
    ImageReaderSpi.STANDARD_INPUT_TYPE
    Deprecated.
    Instead of using this field, directly create the equivalent array{ ImageInputStream.class }.
    static finalClass<?>[]
    ImageWriterSpi.STANDARD_OUTPUT_TYPE
    Deprecated.
    Instead of using this field, directly create the equivalent array{ ImageOutputStream.class }.
    Methods injavax.imageio.spi that returnClass
    Modifier and Type
    Method
    Description
    ImageInputStreamSpi.getInputClass()
    Returns aClass object representing the class or interface type that must be implemented by an input source in order to be "wrapped" in anImageInputStream via thecreateInputStreamInstance method.
    Class<?>[]
    ImageReaderSpi.getInputTypes()
    Returns an array ofClass objects indicating what types of objects may be used as arguments to the reader'ssetInput method.
    ImageOutputStreamSpi.getOutputClass()
    Returns aClass object representing the class or interface type that must be implemented by an output destination in order to be "wrapped" in anImageOutputStream via thecreateOutputStreamInstance method.
    Class<?>[]
    ImageWriterSpi.getOutputTypes()
    Returns an array ofClass objects indicating what types of objects may be used as arguments to the writer'ssetOutput method.
    Methods injavax.imageio.spi that return types with arguments of typeClass
    Modifier and Type
    Method
    Description
    ServiceRegistry.getCategories()
    Returns anIterator ofClass objects indicating the current set of categories.
    Methods injavax.imageio.spi with parameters of typeClass
    Modifier and Type
    Method
    Description
    void
    ServiceRegistry.deregisterAll(Class<?> category)
    Deregisters all service provider object currently registered under the given category.
    <T> boolean
    ServiceRegistry.deregisterServiceProvider(T provider,Class<T> category)
    Removes a service provider object from the given category.
    <T> T
    ServiceRegistry.getServiceProviderByClass(Class<T> providerClass)
    Returns the currently registered service provider object that is of the given class type.
    <T> Iterator<T>
    ServiceRegistry.getServiceProviders(Class<T> category, boolean useOrdering)
    Returns anIterator containing all registered service providers in the given category.
    <T> Iterator<T>
    ServiceRegistry.getServiceProviders(Class<T> category,ServiceRegistry.Filter filter, boolean useOrdering)
    Returns anIterator containing service provider objects within a given category that satisfy a criterion imposed by the suppliedServiceRegistry.Filter object'sfilter method.
    static <T> Iterator<T>
    ServiceRegistry.lookupProviders(Class<T> providerClass)
    Locates and incrementally instantiates the available providers of a given service using the context class loader.
    static <T> Iterator<T>
    ServiceRegistry.lookupProviders(Class<T> providerClass,ClassLoader loader)
    Searches for implementations of a particular service class using the given class loader.
    void
    IIOServiceProvider.onDeregistration(ServiceRegistry registry,Class<?> category)
    A callback that will be whenever the Spi class has been deregistered from aServiceRegistry.
    void
    RegisterableService.onDeregistration(ServiceRegistry registry,Class<?> category)
    Called when an object implementing this interface is removed from the givencategory of the givenregistry.
    void
    IIOServiceProvider.onRegistration(ServiceRegistry registry,Class<?> category)
    A callback that will be called exactly once after the Spi class has been instantiated and registered in aServiceRegistry.
    void
    RegisterableService.onRegistration(ServiceRegistry registry,Class<?> category)
    Called when an object implementing this interface is added to the givencategory of the givenregistry.
    <T> boolean
    ServiceRegistry.registerServiceProvider(T provider,Class<T> category)
    Adds a service provider object to the registry.
    <T> boolean
    ServiceRegistry.setOrdering(Class<T> category, T firstProvider, T secondProvider)
    Sets a pairwise ordering between two service provider objects within a given category.
    <T> boolean
    ServiceRegistry.unsetOrdering(Class<T> category, T firstProvider, T secondProvider)
    Sets a pairwise ordering between two service provider objects within a given category.
    Constructors injavax.imageio.spi with parameters of typeClass
    Modifier
    Constructor
    Description
     
    ImageInputStreamSpi(String vendorName,String version,Class<?> inputClass)
    Constructs anImageInputStreamSpi with a given set of values.
     
    ImageOutputStreamSpi(String vendorName,String version,Class<?> outputClass)
    Constructs anImageOutputStreamSpi with a given set of values.
     
    ImageReaderSpi(String vendorName,String version,String[] names,String[] suffixes,String[] MIMETypes,String readerClassName,Class<?>[] inputTypes,String[] writerSpiNames, boolean supportsStandardStreamMetadataFormat,String nativeStreamMetadataFormatName,String nativeStreamMetadataFormatClassName,String[] extraStreamMetadataFormatNames,String[] extraStreamMetadataFormatClassNames, boolean supportsStandardImageMetadataFormat,String nativeImageMetadataFormatName,String nativeImageMetadataFormatClassName,String[] extraImageMetadataFormatNames,String[] extraImageMetadataFormatClassNames)
    Constructs anImageReaderSpi with a given set of values.
     
    ImageWriterSpi(String vendorName,String version,String[] names,String[] suffixes,String[] MIMETypes,String writerClassName,Class<?>[] outputTypes,String[] readerSpiNames, boolean supportsStandardStreamMetadataFormat,String nativeStreamMetadataFormatName,String nativeStreamMetadataFormatClassName,String[] extraStreamMetadataFormatNames,String[] extraStreamMetadataFormatClassNames, boolean supportsStandardImageMetadataFormat,String nativeImageMetadataFormatName,String nativeImageMetadataFormatClassName,String[] extraImageMetadataFormatNames,String[] extraImageMetadataFormatClassNames)
    Constructs anImageWriterSpi with a given set of values.
    Constructor parameters injavax.imageio.spi with type arguments of typeClass
    Modifier
    Constructor
    Description
     
    ServiceRegistry(Iterator<Class<?>> categories)
    Constructs aServiceRegistry instance with a set of categories taken from thecategories argument.
  • Uses ofClass injavax.lang.model

    Methods injavax.lang.model with parameters of typeClass
    Modifier and Type
    Method
    Description
    <A extendsAnnotation>
    A
    AnnotatedConstruct.getAnnotation(Class<A> annotationType)
    Returns this construct's annotation of the specified type if such an annotation ispresent, elsenull.
    <A extendsAnnotation>
    A[]
    AnnotatedConstruct.getAnnotationsByType(Class<A> annotationType)
    Returns annotations that areassociated with this construct.
  • Uses ofClass injavax.lang.model.element

    Methods injavax.lang.model.element with parameters of typeClass
    Modifier and Type
    Method
    Description
    <A extendsAnnotation>
    A
    Element.getAnnotation(Class<A> annotationType)
    Returns this construct's annotation of the specified type if such an annotation ispresent, elsenull.
    <A extendsAnnotation>
    A[]
    Element.getAnnotationsByType(Class<A> annotationType)
    Returns annotations that areassociated with this construct.
  • Uses ofClass injavax.lang.model.type

    Methods injavax.lang.model.type with parameters of typeClass
    Modifier and Type
    Method
    Description
    <A extendsAnnotation>
    A
    TypeMirror.getAnnotation(Class<A> annotationType)
    Returns this construct's annotation of the specified type if such an annotation ispresent, elsenull.
    <A extendsAnnotation>
    A[]
    TypeMirror.getAnnotationsByType(Class<A> annotationType)
    Returns annotations that areassociated with this construct.
  • Uses ofClass injavax.management

    Methods injavax.management that returnClass
    Modifier and Type
    Method
    Description
    StandardMBean.getImplementationClass()
    Get the class of the implementation of this Standard MBean (or MXBean).
    finalClass<?>
    StandardMBean.getMBeanInterface()
    Get the Management Interface of this Standard MBean (or MXBean).
    staticClass<?>
    DefaultLoaderRepository.loadClass(String className)
    Deprecated.
    Go through the list of class loaders and try to load the requested class.
    staticClass<?>
    DefaultLoaderRepository.loadClassWithout(ClassLoader loader,String className)
    Deprecated.
    Go through the list of class loaders but exclude the given class loader, then try to load the requested class.
    Methods injavax.management with parameters of typeClass
    Modifier and Type
    Method
    Description
    static boolean
    JMX.isMXBeanInterface(Class<?> interfaceClass)
    Test whether an interface is an MXBean interface.
    static <T> T
    JMX.newMBeanProxy(MBeanServerConnection connection,ObjectName objectName,Class<T> interfaceClass)
    Make a proxy for a Standard MBean in a local or remote MBean Server.
    static <T> T
    JMX.newMBeanProxy(MBeanServerConnection connection,ObjectName objectName,Class<T> interfaceClass, boolean notificationEmitter)
    Make a proxy for a Standard MBean in a local or remote MBean Server that may also support the methods ofNotificationEmitter.
    static <T> T
    JMX.newMXBeanProxy(MBeanServerConnection connection,ObjectName objectName,Class<T> interfaceClass)
    Make a proxy for an MXBean in a local or remote MBean Server.
    static <T> T
    JMX.newMXBeanProxy(MBeanServerConnection connection,ObjectName objectName,Class<T> interfaceClass, boolean notificationEmitter)
    Make a proxy for an MXBean in a local or remote MBean Server that may also support the methods ofNotificationEmitter.
    static <T> T
    MBeanServerInvocationHandler.newProxyInstance(MBeanServerConnection connection,ObjectName objectName,Class<T> interfaceClass, boolean notificationBroadcaster)
    Return a proxy that implements the given interface by forwarding its methods through the given MBean server to the named MBean.
    Constructors injavax.management with parameters of typeClass
    Modifier
    Constructor
    Description
    protected
    StandardEmitterMBean(Class<?> mbeanInterface, boolean isMXBean,NotificationEmitter emitter)
    Make an MBean whose management interface is specified bymbeanInterface, and where notifications are handled by the givenNotificationEmitter.
    protected
    StandardEmitterMBean(Class<?> mbeanInterface,NotificationEmitter emitter)
    Make an MBean whose management interface is specified bymbeanInterface, and where notifications are handled by the givenNotificationEmitter.
     
    StandardEmitterMBean(T implementation,Class<T> mbeanInterface, boolean isMXBean,NotificationEmitter emitter)
    Make an MBean whose management interface is specified bymbeanInterface, with the given implementation and where notifications are handled by the given NotificationEmitter.
     
    StandardEmitterMBean(T implementation,Class<T> mbeanInterface,NotificationEmitter emitter)
    Make an MBean whose management interface is specified bymbeanInterface, with the given implementation and where notifications are handled by the givenNotificationEmitter.
    protected
    StandardMBean(Class<?> mbeanInterface)
    Make a DynamicMBean out ofthis, using the specifiedmbeanInterface class.
    protected
    StandardMBean(Class<?> mbeanInterface, boolean isMXBean)
    Make a DynamicMBean out ofthis, using the specifiedmbeanInterface class, and choosing whether the resulting MBean is an MXBean.
     
    StandardMBean(T implementation,Class<T> mbeanInterface)
    Make a DynamicMBean out of the objectimplementation, using the specifiedmbeanInterface class.
     
    StandardMBean(T implementation,Class<T> mbeanInterface, boolean isMXBean)
    Make a DynamicMBean out of the objectimplementation, using the specifiedmbeanInterface class, and choosing whether the resultant MBean is an MXBean.
  • Uses ofClass injavax.management.loading

    Methods injavax.management.loading that returnClass
    Modifier and Type
    Method
    Description
    ClassLoaderRepository.loadClass(String className)
    Load the given class name through the list of class loaders.
    staticClass<?>
    DefaultLoaderRepository.loadClass(String className)
    Deprecated.
    Go through the list of class loaders and try to load the requested class.
    ClassLoaderRepository.loadClassBefore(ClassLoader stop,String className)
    Load the given class name through the list of class loaders, stopping at the given one.
    ClassLoaderRepository.loadClassWithout(ClassLoader exclude,String className)
    Load the given class name through the list of class loaders, excluding the given one.
    staticClass<?>
    DefaultLoaderRepository.loadClassWithout(ClassLoader loader,String className)
    Deprecated.
    Go through the list of class loaders but exclude the given class loader, then try to load the requested class.
  • Uses ofClass injavax.management.openmbean

    Methods injavax.management.openmbean with parameters of typeClass
    Modifier and Type
    Method
    Description
    static <T> ArrayType<T>
    ArrayType.getPrimitiveArrayType(Class<T> arrayClass)
    Create anArrayType instance in a type-safe manner.
  • Uses ofClass injavax.naming.spi

    Methods injavax.naming.spi with parameters of typeClass
    Modifier and Type
    Method
    Description
    Resolver.resolveToClass(String name,Class<? extendsContext> contextType)
    Partially resolves a name.
    Resolver.resolveToClass(Name name,Class<? extendsContext> contextType)
    Partially resolves a name.
  • Uses ofClass injavax.print

    Methods injavax.print that returnClass
    Modifier and Type
    Method
    Description
    Class<?>[]
    Determines the printing attribute categories a client can specify when setting up a job for this print service.
    Class<?>[]
    AttributeException.getUnsupportedAttributes()
    Returns the array of printing attribute classes for which the Print Service instance does not support the attribute at all, ornull if there are no such attributes.
    Methods injavax.print with parameters of typeClass
    Modifier and Type
    Method
    Description
    PrintService.getAttribute(Class<T> category)
    Gets the value of the single specified service attribute.
    PrintService.getDefaultAttributeValue(Class<? extendsAttribute> category)
    Determines this print service's default printing attribute value in the given category.
    PrintService.getSupportedAttributeValues(Class<? extendsAttribute> category,DocFlavor flavor,AttributeSet attributes)
    Determines the printing attribute values a client can specify in the given category when setting up a job for this print service.
    boolean
    PrintService.isAttributeCategorySupported(Class<? extendsAttribute> category)
    Determines whether a client can specify the given printing attribute category when setting up a job for this print service.
  • Uses ofClass injavax.print.attribute

    Methods injavax.print.attribute that returnClass
    Modifier and Type
    Method
    Description
    Class<? extendsAttribute>
    Attribute.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value when it is added to an attribute set.
    staticClass<?>
    AttributeSetUtilities.verifyAttributeCategory(Object object,Class<?> interfaceName)
    Verify that the given object is aClass that implements the given interface, which is assumed to be interfaceAttribute or a subinterface thereof.
    Methods injavax.print.attribute with parameters of typeClass
    Modifier and Type
    Method
    Description
    boolean
    AttributeSet.containsKey(Class<?> category)
    Returnstrue if this attribute set contains an attribute for the specified category.
    boolean
    HashAttributeSet.containsKey(Class<?> category)
    Returnstrue if this attribute set contains an attribute for the specified category.
    AttributeSet.get(Class<?> category)
    Returns the attribute value which this attribute set contains in the given attribute category.
    HashAttributeSet.get(Class<?> category)
    Returns the attribute value which this attribute set contains in the given attribute category.
    boolean
    AttributeSet.remove(Class<?> category)
    Removes any attribute for this category from this attribute set if present.
    boolean
    HashAttributeSet.remove(Class<?> category)
    Removes any attribute for this category from this attribute set if present.
    staticClass<?>
    AttributeSetUtilities.verifyAttributeCategory(Object object,Class<?> interfaceName)
    Verify that the given object is aClass that implements the given interface, which is assumed to be interfaceAttribute or a subinterface thereof.
    staticAttribute
    AttributeSetUtilities.verifyAttributeValue(Object object,Class<?> interfaceName)
    Verify that the given object is an instance of the given interface, which is assumed to be interfaceAttribute or a subinterface thereof.
    static void
    AttributeSetUtilities.verifyCategoryForValue(Class<?> category,Attribute attribute)
    Verify that the given attribute category object is equal to the category of the given attribute value object.
    Constructors injavax.print.attribute with parameters of typeClass
    Modifier
    Constructor
    Description
    protected
    HashAttributeSet(Class<?> interfaceName)
    Construct a new, empty attribute set, where the members of the attribute set are restricted to the given interface.
    protected
    HashAttributeSet(Attribute[] attributes,Class<?> interfaceName)
    Construct a new attribute set, where the members of the attribute set are restricted to the given interface.
    protected
    HashAttributeSet(Attribute attribute,Class<?> interfaceName)
    Construct a new attribute set, initially populated with the given attribute, where the members of the attribute set are restricted to the given interface.
    protected
    HashAttributeSet(AttributeSet attributes,Class<?> interfaceName)
    Construct a new attribute set, initially populated with the values from the given set where the members of the attribute set are restricted to the given interface.
  • Uses ofClass injavax.print.attribute.standard

    Modifier and Type
    Method
    Description
    finalClass<? extendsAttribute>
    Chromaticity.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    ColorSupported.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    Compression.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    Copies.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    CopiesSupported.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    DateTimeAtCompleted.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    DateTimeAtCreation.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    DateTimeAtProcessing.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    Destination.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    DialogOwner.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    DialogTypeSelection.getCategory()
    Gets the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    DocumentName.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    Fidelity.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    Finishings.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    JobHoldUntil.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    JobImpressions.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    JobImpressionsCompleted.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    JobImpressionsSupported.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    JobKOctets.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    JobKOctetsProcessed.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    JobKOctetsSupported.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    JobMediaSheets.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    JobMediaSheetsCompleted.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    JobMediaSheetsSupported.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    JobMessageFromOperator.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    JobName.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    JobOriginatingUserName.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    JobPriority.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    JobPrioritySupported.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    JobSheets.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    JobState.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    JobStateReason.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    JobStateReasons.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    Media.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    MediaPrintableArea.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    MediaSize.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    MultipleDocumentHandling.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    NumberOfDocuments.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    NumberOfInterveningJobs.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    NumberUp.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    NumberUpSupported.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    OrientationRequested.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    OutputBin.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    OutputDeviceAssigned.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    PageRanges.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    PagesPerMinute.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    PagesPerMinuteColor.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    PDLOverrideSupported.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    PresentationDirection.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    PrinterInfo.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    PrinterIsAcceptingJobs.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    PrinterLocation.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    PrinterMakeAndModel.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    PrinterMessageFromOperator.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    PrinterMoreInfo.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    PrinterMoreInfoManufacturer.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    PrinterName.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    PrinterResolution.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    PrinterState.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    PrinterStateReason.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    PrinterStateReasons.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    PrinterURI.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    PrintQuality.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    QueuedJobCount.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    ReferenceUriSchemesSupported.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    RequestingUserName.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    Severity.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    SheetCollate.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
    finalClass<? extendsAttribute>
    Sides.getCategory()
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.
  • Uses ofClass injavax.script

    Methods injavax.script with parameters of typeClass
    Modifier and Type
    Method
    Description
    <T> T
    Invocable.getInterface(Class<T> clasz)
    Returns an implementation of an interface using functions compiled in the interpreter.
    <T> T
    Invocable.getInterface(Object thiz,Class<T> clasz)
    Returns an implementation of an interface using member functions of a scripting object compiled in the interpreter.
  • Uses ofClass injavax.security.auth

    Methods injavax.security.auth with parameters of typeClass
    Modifier and Type
    Method
    Description
    <T extendsPrincipal>
    Set<T>
    Subject.getPrincipals(Class<T> c)
    Return aSet of Principals associated with thisSubject that are instances or subclasses of the specifiedClass.
    <T> Set<T>
    Return aSet of private credentials associated with thisSubject that are instances or subclasses of the specifiedClass.
    <T> Set<T>
    Return aSet of public credentials associated with thisSubject that are instances or subclasses of the specifiedClass.
  • Uses ofClass injavax.sound.midi

    Methods injavax.sound.midi that returnClass
    Modifier and Type
    Method
    Description
    SoundbankResource.getDataClass()
    Obtains the class used by this sample to represent its data.
    Constructors injavax.sound.midi with parameters of typeClass
    Modifier
    Constructor
    Description
    protected
    Instrument(Soundbank soundbank,Patch patch,String name,Class<?> dataClass)
    Constructs a new MIDI instrument from the specifiedPatch.
    protected
    SoundbankResource(Soundbank soundBank,String name,Class<?> dataClass)
    Constructs a newSoundbankResource from the given sound bank and wavetable index.
  • Uses ofClass injavax.sound.sampled

    Methods injavax.sound.sampled that returnClass
    Modifier and Type
    Method
    Description
    Line.Info.getLineClass()
    Obtains the class of the line that thisLine.Info object describes.
    Constructors injavax.sound.sampled with parameters of typeClass
    Modifier
    Constructor
    Description
     
    Info(Class<?> lineClass,AudioFormat format)
    Constructs a data line's info object from the specified information, which includes a single audio format.
     
    Info(Class<?> lineClass,AudioFormat[] formats, int minBufferSize, int maxBufferSize)
    Constructs a data line's info object from the specified information, which includes a set of supported audio formats and a range for the buffer size.
     
    Info(Class<?> lineClass,AudioFormat format, int bufferSize)
    Constructs a data line's info object from the specified information, which includes a single audio format and a desired buffer size.
     
    Info(Class<?> lineClass)
    Constructs an info object that describes a line of the specified class.
     
    Info(Class<?> lineClass,String name, boolean isSource)
    Constructs a port's info object from the information given.
  • Uses ofClass injavax.sql

    Methods injavax.sql that return types with arguments of typeClass
    Modifier and Type
    Method
    Description
    RowSet.getTypeMap()
    Retrieves theMap object associated with thisRowSet object, which specifies the custom mapping of SQL user-defined types, if any.
    Method parameters injavax.sql with type arguments of typeClass
    Modifier and Type
    Method
    Description
    void
    RowSet.setTypeMap(Map<String,Class<?>> map)
    Installs the givenjava.util.Map object as the default type map for thisRowSet object.
  • Uses ofClass injavax.sql.rowset

    Methods injavax.sql.rowset that return types with arguments of typeClass
    Modifier and Type
    Method
    Description
    BaseRowSet.getTypeMap()
    Retrieves the type map associated with theConnection object for thisRowSet object.
    Methods injavax.sql.rowset with parameters of typeClass
    Modifier and Type
    Method
    Description
    boolean
    RowSetMetaDataImpl.isWrapperFor(Class<?> interfaces)
    Returns true if this either implements the interface argument or is directly or indirectly a wrapper for an object that does.
    <T> T
    RowSetMetaDataImpl.unwrap(Class<T> iface)
    Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy.
    Method parameters injavax.sql.rowset with type arguments of typeClass
    Modifier and Type
    Method
    Description
    void
    BaseRowSet.setTypeMap(Map<String,Class<?>> map)
    Installs the givenjava.util.Map object as the type map associated with theConnection object for thisRowSet object.
  • Uses ofClass injavax.sql.rowset.serial

    Method parameters injavax.sql.rowset.serial with type arguments of typeClass
    Modifier and Type
    Method
    Description
    SerialArray.getArray(long index, int count,Map<String,Class<?>> map)
    Returns a new array that is a copy of a slice of thisSerialArray object, starting with the element at the given index and containing the given number of consecutive elements.
    SerialArray.getArray(Map<String,Class<?>> map)
    Returns a new array that is a copy of thisSerialArray object, using the given type map for the custom mapping of each element when the elements are SQL UDTs.
    SerialStruct.getAttributes(Map<String,Class<?>> map)
    Retrieves the attributes for the SQL structured type that thisSerialStruct represents as an array ofObject values, using the given type map for custom mapping if appropriate.
    SerialRef.getObject(Map<String,Class<?>> map)
    Returns anObject representing the SQL structured type to which thisSerialRef object refers.
    SerialArray.getResultSet(long index, int count,Map<String,Class<?>> map)
    Retrieves a result set holding the elements of the subarray that starts at Retrieves aResultSet object that contains a subarray of the elements in thisSerialArray object, starting at indexindex and containing up tocount successive elements.
    SerialArray.getResultSet(Map<String,Class<?>> map)
    Retrieves aResultSet object that contains all of the elements of the SQLARRAY value represented by thisSerialArray object.
    Constructor parameters injavax.sql.rowset.serial with type arguments of typeClass
    Modifier
    Constructor
    Description
     
    SerialArray(Array array,Map<String,Class<?>> map)
    Constructs a newSerialArray object from the givenArray object, using the given type map for the custom mapping of each element when the elements are SQL UDTs.
     
    Constructs aSerialStruct object from the givenSQLData object, using the given type map to custom map it to a class in the Java programming language.
     
    Constructs aSerialStruct object from the givenStruct object, using the givenjava.util.Map object for custom mapping the SQL structured type or any of its attributes that are SQL structured types.
     
    SQLInputImpl(Object[] attributes,Map<String,Class<?>> map)
    Creates anSQLInputImpl object initialized with the given array of attributes and the given type map.
  • Uses ofClass injavax.swing

    Methods injavax.swing that returnClass
    Modifier and Type
    Method
    Description
    JTable.getColumnClass(int column)
    Returns the type of the column appearing in the view at column positioncolumn.
    Class<? extendsComponentUI>
    UIDefaults.getUIClass(String uiClassID)
    Returns the L&F class that renders this component.
    Class<? extendsComponentUI>
    UIDefaults.getUIClass(String uiClassID,ClassLoader uiClassLoader)
    The value ofget(uidClassID) must be theString name of a class that implements the correspondingComponentUI class.
    Methods injavax.swing with parameters of typeClass
    Modifier and Type
    Method
    Description
    staticContainer
    SwingUtilities.getAncestorOfClass(Class<?> c,Component comp)
    Convenience method for searching abovecomp in the component hierarchy and returns the first object of classc it finds.
    JTable.getDefaultEditor(Class<?> columnClass)
    Returns the editor to be used when no editor has been set in aTableColumn.
    JTable.getDefaultRenderer(Class<?> columnClass)
    Returns the cell renderer to be used when no renderer has been set in aTableColumn.
    <T extendsEventListener>
    T[]
    AbstractListModel.getListeners(Class<T> listenerType)
    Returns an array of all the objects currently registered asFooListeners upon this model.
    <T extendsEventListener>
    T[]
    AbstractSpinnerModel.getListeners(Class<T> listenerType)
    Return an array of all the listeners of the given type that were added to this model.
    <T extendsEventListener>
    T[]
    DefaultBoundedRangeModel.getListeners(Class<T> listenerType)
    Returns an array of all the objects currently registered asFooListeners upon this model.
    <T extendsEventListener>
    T[]
    DefaultButtonModel.getListeners(Class<T> listenerType)
    Returns an array of all the objects currently registered asFooListeners upon this model.
    <T extendsEventListener>
    T[]
    DefaultListSelectionModel.getListeners(Class<T> listenerType)
    Returns an array of all the objects currently registered asFooListeners upon this model.
    <T extendsEventListener>
    T[]
    DefaultSingleSelectionModel.getListeners(Class<T> listenerType)
    Returns an array of all the objects currently registered asFooListeners upon this model.
    <T extendsEventListener>
    T[]
    JComponent.getListeners(Class<T> listenerType)
    Returns an array of all the objects currently registered asFooListeners upon thisJComponent.
    <T extendsEventListener>
    T[]
    Timer.getListeners(Class<T> listenerType)
    Returns an array of all the objects currently registered asFooListeners upon thisTimer.
    staticObject
    LookAndFeel.makeIcon(Class<?> baseClass,String gifFile)
    Creates and returns aUIDefault.LazyValue that loads an image.
    void
    JTable.setDefaultEditor(Class<?> columnClass,TableCellEditor editor)
    Sets a default cell editor to be used if no editor has been set in aTableColumn.
    void
    JTable.setDefaultRenderer(Class<?> columnClass,TableCellRenderer renderer)
    Sets a default cell renderer to be used if no renderer has been set in aTableColumn.
  • Uses ofClass injavax.swing.event

    Methods injavax.swing.event with parameters of typeClass
    Modifier and Type
    Method
    Description
    <T extendsEventListener>
    void
    EventListenerList.add(Class<T> t, T l)
    Adds the listener as a listener of the specified type.
    int
    EventListenerList.getListenerCount(Class<?> t)
    Returns the total number of listeners of the supplied type for this listener list.
    <T extendsEventListener>
    T[]
    EventListenerList.getListeners(Class<T> t)
    Return an array of all the listeners of the given type.
    <T extendsEventListener>
    void
    EventListenerList.remove(Class<T> t, T l)
    Removes the listener as a listener of the specified type.
  • Uses ofClass injavax.swing.plaf.synth

    Methods injavax.swing.plaf.synth with parameters of typeClass
    Modifier and Type
    Method
    Description
    void
    SynthLookAndFeel.load(InputStream input,Class<?> resourceBase)
    Loads the set ofSynthStyles that will be used by thisSynthLookAndFeel.
  • Uses ofClass injavax.swing.table

    Methods injavax.swing.table that returnClass
    Modifier and Type
    Method
    Description
    AbstractTableModel.getColumnClass(int columnIndex)
    ReturnsObject.class regardless ofcolumnIndex.
    TableModel.getColumnClass(int columnIndex)
    Returns the most specific superclass for all the cell values in the column.
    Methods injavax.swing.table with parameters of typeClass
    Modifier and Type
    Method
    Description
    <T extendsEventListener>
    T[]
    AbstractTableModel.getListeners(Class<T> listenerType)
    Returns an array of all the objects currently registered asFooListeners upon thisAbstractTableModel.
    <T extendsEventListener>
    T[]
    DefaultTableColumnModel.getListeners(Class<T> listenerType)
    Returns an array of all the objects currently registered asFooListeners upon this model.
  • Uses ofClass injavax.swing.text

    Methods injavax.swing.text that returnClass
    Modifier and Type
    Method
    Description
    DefaultFormatter.getValueClass()
    Returns that class that is used to create new Objects.
    Methods injavax.swing.text with parameters of typeClass
    Modifier and Type
    Method
    Description
    <T extendsEventListener>
    T[]
    AbstractDocument.getListeners(Class<T> listenerType)
    Returns an array of all the objects currently registered asFooListeners upon this document.
    <T extendsEventListener>
    T[]
    DefaultCaret.getListeners(Class<T> listenerType)
    Returns an array of all the objects currently registered asFooListeners upon this caret.
    <T extendsEventListener>
    T[]
    StyleContext.NamedStyle.getListeners(Class<T> listenerType)
    Return an array of all the listeners of the given type that were added to this model.
    void
    DefaultFormatter.setValueClass(Class<?> valueClass)
    Sets that class that is used to create new Objects.
  • Uses ofClass injavax.swing.tree

    Methods injavax.swing.tree with parameters of typeClass
    Modifier and Type
    Method
    Description
    <T extendsEventListener>
    T[]
    DefaultTreeModel.getListeners(Class<T> listenerType)
    Returns an array of all the objects currently registered asFooListeners upon this model.
    <T extendsEventListener>
    T[]
    DefaultTreeSelectionModel.getListeners(Class<T> listenerType)
    Returns an array of all the objects currently registered asFooListeners upon this model.
  • Uses ofClass injavax.tools

    Methods injavax.tools with parameters of typeClass
    Modifier and Type
    Method
    Description
    ForwardingJavaFileManager.getServiceLoader(JavaFileManager.Location location,Class<S> service)
     
    default <S> ServiceLoader<S>
    JavaFileManager.getServiceLoader(JavaFileManager.Location location,Class<S> service)
    Get a service loader for a specific service class from a given location.
    DocumentationTool.getTask(Writer out,JavaFileManager fileManager,DiagnosticListener<? superJavaFileObject> diagnosticListener,Class<?> docletClass,Iterable<String> options,Iterable<? extendsJavaFileObject> compilationUnits)
    Creates a future for a documentation task with the given components and arguments.
  • Uses ofClass injavax.xml.xpath

    Methods injavax.xml.xpath with parameters of typeClass
    Modifier and Type
    Method
    Description
    default <T> T
    XPath.evaluateExpression(String expression,Object item,Class<T> type)
    Evaluate an XPath expression in the specified context and return the result with the type specified through theclass type
    default <T> T
    XPath.evaluateExpression(String expression,InputSource source,Class<T> type)
    Evaluate an XPath expression in the context of the specifiedsource and return the result as specified.
    default <T> T
    XPathExpression.evaluateExpression(Object item,Class<T> type)
    Evaluate the compiled XPath expression in the specified context, and return the result with the type specified through theclass type.
    default <T> T
    XPathExpression.evaluateExpression(InputSource source,Class<T> type)
    Evaluate the compiled XPath expression in the specified context, and return the result with the type specified through theclass type
    staticQName
    XPathEvaluationResult.XPathResultType.getQNameType(Class<?> clsType)
    Returns the QName type as specified inXPathConstants that corresponds to the specified class type.