Parameter (Java SE 11 & JDK 11 ) (original) (raw)
@Deprecated(since="9",
forRemoval=true)
public interface Parameter
Deprecated, for removal: This API element is subject to removal in a future version.
Parameter information. This includes a parameter type and parameter name.
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods
Modifier and Type Method Description AnnotationDesc[] annotations() Deprecated, for removal: This API element is subject to removal in a future version. Get the annotations of this parameter. String name() Deprecated, for removal: This API element is subject to removal in a future version. Get local name of this parameter. String toString() Deprecated, for removal: This API element is subject to removal in a future version. Returns a string representation of the parameter. Type type() Deprecated, for removal: This API element is subject to removal in a future version. Get the type of this parameter. String typeName() Deprecated, for removal: This API element is subject to removal in a future version. Get type name of this parameter. Method Detail
* #### type [Type](Type.html "interface in com.sun.javadoc") type() Deprecated, for removal: This API element is subject to removal in a future version. Get the type of this parameter. Returns: the type of this parameter. * #### name [String](../../../../java.base/java/lang/String.html "class in java.lang") name() Deprecated, for removal: This API element is subject to removal in a future version. Get local name of this parameter. For example if parameter is the short 'index', returns "index". Returns: the name of this parameter as a string. * #### typeName [String](../../../../java.base/java/lang/String.html "class in java.lang") typeName() Deprecated, for removal: This API element is subject to removal in a future version. Get type name of this parameter. For example if parameter is the short 'index', returns "short". This method returns a complete string representation of the type, including the dimensions of arrays and the type arguments of parameterized types. Names are qualified. Returns: a complete string representation of the type. * #### toString [String](../../../../java.base/java/lang/String.html "class in java.lang") toString() Deprecated, for removal: This API element is subject to removal in a future version. Returns a string representation of the parameter. For example if parameter is the short 'index', returns "short index". Overrides: `[toString](../../../../java.base/java/lang/Object.html#toString%28%29)` in class `[Object](../../../../java.base/java/lang/Object.html "class in java.lang")` Returns: type and parameter name of this parameter. * #### annotations [AnnotationDesc](AnnotationDesc.html "interface in com.sun.javadoc")[] annotations() Deprecated, for removal: This API element is subject to removal in a future version. Get the annotations of this parameter. Return an empty array if there are none. Returns: the annotations of this parameter. Since: 1.5
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2025, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.