Skip to content

How to write a lambda parameter? #1144

Closed Answered by Egorand
liyihuanx asked this question in Q&A
Discussion options

You must be logged in to vote

Start with a ParameterSpec.builder() and create a LambdaTypeName to represent the type. To provide the default null argument, use ParameterSpec.Builder.defaultValue(). There should be a few similar examples in the unit tests.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by liyihuanx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants