I end up with a lot of code similar to this;
Class getInterfaceMethodDeclaration( Method method, Class clazz )
throws NoSuchMethodException
{
return interfacesOf( clazz )
.map( Classes.RAW_CLASS )
.filter( intface -> checkForMethod( intface, method ) )
.findFirst()
.orElseThrow( () -> new NoSuchMethodException( method.getName() ) );
}Not sure I would have recognized this Java a few years back. -- Niclas Hedhman, Software Developer http://zest.apache.org - New Energy for Java
