[PATCH] 4851444: Exposing sun.reflect.Reflection#getCallerClass as a public API in Java 8
Jochen Theodorou
blackdrag at gmx.org
Fri Sep 20 21:49:49 UTC 2013
Am 20.09.2013 20:46, schrieb Mandy Chung:
[...]
> I have some trouble in expressing the skipToSecondPredicate without side
> effect in lambda. With the help from Paul Sandoz (thanks Paul), if I
> had a stack stream, Thread.getCaller() method would be like this:
> stream.filter(e -> return
> REFLECTION_CLASSES.contains(e->getClassName()))
> .skip(2).findFirst();
and here I was and tried to show you what a Stream really is... I should
have read that mail before the other ;) Only I was irritated not to find
skip in
http://download.java.net/lambda/b78/docs/api/java/util/stream/Stream.html I
have seen skip in several examples. Anyway... has nothing to do with the
matter here
bye Jochen
--
Jochen "blackdrag" Theodorou - Groovy Project Tech Lead
blog: http://blackdragsview.blogspot.com/
german groovy discussion newsgroup: de.comp.lang.misc
For Groovy programming sources visit http://groovy-lang.org
More information about the core-libs-dev
mailing list