Skip to content

Instantly share code, notes, and snippets.

View khurshiddev's full-sized avatar
🎯
Focusing

Khurshid Usarov khurshiddev

🎯
Focusing
  • Seoul South Korea
View GitHub Profile
@alexengrig
alexengrig / LambdaFactory.java
Created September 12, 2021 16:50
Example of using LambdaMetafactory#metafactory
import java.lang.invoke.CallSite;
import java.lang.invoke.LambdaMetafactory;
import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.MethodType;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.function.BiFunction;