import java.util.*; interface Stream { Stream map(Function mapper); } interface Function { R apply(T t); } class Test1 { public static void main(Stream> stream) { Stream map = stream.map(Map.Entry::getKey); } }