Visitar URL original
Introduction to Method Handles tutorial by smthelusive · Pull Request #90 · java/devjava-content · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update app/pages/learn/01_tutorial/04_mastering-the-api/02_invoke/00_…
…methodhandle.md

Co-authored-by: dan1st <daniel@wwwmaster.at>
  • Loading branch information
2 people authored and smthelusive committed Jun 1, 2024
commit 5377b9d198f67eefd0c2365283ec4ed833f59cff
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ MethodHandles.Lookup lookup = MethodHandles.lookup();

<a id="methodtype">&nbsp;</a>
## Method type
Tolook up a method handle we also need to provide the type information of the method or field. The method
To look up a method handle we also need to provide the type information of the method or field. The method
type information is represented as [`MethodType`](javadoc:MethodType) object. To instantiate a `MethodType`,
we have to provide the return type as the first parameter followed by all the argument types:

Expand Down