java.lang.Objectjava.lang.reflect.AccessibleObject
java.lang.reflect.Constructor
All Implemented Interfaces:
GenericDeclaration, Member, AnnotatedElement
{@code Constructor} permits widening conversions to occur when matching the actual parameters to newInstance() with the underlying constructor's formal parameters, but throws an {@code IllegalArgumentException} if a narrowing conversion would occur.
- the class in which the constructor is declaredKenneth
- RussellNakul
- SaraiyaFields inherited from java.lang.reflect.AccessibleObject: |
---|
override, reflectionFactory, securityCheckCache |
Constructor: |
---|
|
Method from java.lang.reflect.Constructor Summary: |
---|
copy, equals, getAnnotation, getConstructorAccessor, getDeclaredAnnotations, getDeclaringClass, getExceptionTypes, getGenericExceptionTypes, getGenericParameterTypes, getModifiers, getName, getParameterAnnotations, getParameterTypes, getRawAnnotations, getRawParameterAnnotations, getSignature, getSlot, getTypeParameters, hashCode, isSynthetic, isVarArgs, newInstance, setConstructorAccessor, toGenericString, toString |
Methods from java.lang.reflect.AccessibleObject: |
---|
checkAccess, getAnnotation, getAnnotations, getDeclaredAnnotations, isAccessible, isAnnotationPresent, setAccessible, setAccessible, slowCheckMemberAccess |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from java.lang.reflect.Constructor Detail: |
---|
|
|
|
|
|
|
|
If an exception type is a type variable or a parameterized type, it is created. Otherwise, it is resolved. |
If a formal parameter type is a parameterized type, the {@code Type} object returned for it must accurately reflect the actual type parameters used in the source code. If a formal parameter type is a type variable or a parameterized type, it is created. Otherwise, it is resolved. |
|
|
|
|
|
|
|
|
|
|
|
|
If the number of formal parameters required by the underlying constructor is 0, the supplied {@code initargs} array may be of length 0 or null. If the constructor's declaring class is an inner class in a non-static context, the first argument to the constructor needs to be the enclosing instance; see section 15.9.3 of The Java™ Language Specification. If the required access and argument checks succeed and the instantiation will proceed, the constructor's declaring class is initialized if it has not already been initialized. If the constructor completes normally, returns the newly created and initialized instance. |
|
The only possible modifiers for constructors are the access modifiers {@code public}, {@code protected} or {@code private}. Only one of these may appear, or none if the constructor has default (package) access. |
public java.util.Hashtable(int,float) The only possible modifiers for constructors are the access modifiers {@code public}, {@code protected} or {@code private}. Only one of these may appear, or none if the constructor has default (package) access. |