← 返回首页
Constructor (Java SE 26 & JDK 26)
JavaScript is disabled on your browser.
Contents  
  1. Description
  2. Field Summary
  3. Method Summary
    1. Methods declared in class Executable
    2. Methods declared in class AccessibleObject
    3. Methods declared in class Object
  4. Method Details
    1. setAccessible(boolean)
    2. getDeclaringClass()
    3. getName()
    4. getModifiers()
    5. getTypeParameters()
    6. getParameterTypes()
    7. getParameterCount()
    8. getGenericParameterTypes()
    9. getExceptionTypes()
    10. getGenericExceptionTypes()
    11. equals(Object)
    12. hashCode()
    13. toString()
    14. toGenericString()
    15. newInstance(Object...)
    16. isVarArgs()
    17. isSynthetic()
    18. getAnnotation(Class)
    19. getDeclaredAnnotations()
    20. getParameterAnnotations()
    21. getAnnotatedReturnType()
    22. getAnnotatedReceiverType()
Hide sidebar  Show sidebar

Class Constructor<T>

Type Parameters: T - the class in which the constructor is declared All Implemented Interfaces: AnnotatedElement, GenericDeclaration, Member
public final class Constructor<T> extends Executable
Constructor provides information about, and access to, a single constructor for a class.

Constructor permits widening conversions to occur when matching the actual parameters to newInstance() with the underlying constructor's formal parameters, but throws an IllegalArgumentException if a narrowing conversion would occur.

Since: 1.1 See Also:

Scripting on this page tracks web page traffic, but does not change the content in any way.