i have some code like this:
List<ClassB> back = new ArrayList<ClassB>();
for( ClassA classA : getClassAs() )
{
if( classA instanceof ClassB )
{
back.add((ClassB) classA);
}
}
ClassB extends ClassA
Is there some smart way to do this in lambdaj? I know there is the IsInstanceOf Matcher but i have to do the cast by 'hand'.
thanks in advance
mojoo