[Java] Class SecondParam
- groovy.transform.stc.SecondParam
A hint used to instruct the type checker to pick the second parameter type. For example:
public <T,U> def doWith(T first, U second, @ClosureParams(SecondParam.class) Closure c) { c.call(src); }
This class has several inner classes that also helps picking generic argument types instead of the parameter type.
- Authors:
- Cdric Champeau
- Since:
- 2.3.0
Nested Class Summary
Modifiers | Name | Description |
---|---|---|
static class | SecondParam.Component | |
static class | SecondParam.FirstGenericType | |
static class | SecondParam.SecondGenericType | |
static class | SecondParam.ThirdGenericType |
Constructor Summary
Constructor and description |
---|
SecondParam
() |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class PickAnyArgumentHint | getParameterTypes |
class SingleSignatureClosureHint | getClosureSignatures, getParameterTypes |
class ClosureSignatureHint | findClassNode, getClosureSignatures, pickGenericType, pickGenericType |
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail
public SecondParam()
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.4.21/html/gapi/groovy/transform/stc/SecondParam.html