Prev: BlocksInJavaCompositors Next: BlocksInJavaDiscussion Top: BlocksInJava
Putting It All Together revisit example...
UnaryPredicate inRange = new BinaryCompose( new And(), new UnaryPredicate() { public boolean is( Object arg ) { return ((Long)arg).longValue() >= LONG_START; } }, new UnaryPredicate() { public boolean is( Object arg ) { return ((Long)arg).longValue() < LONG_END; } } );Build up expression dynamically, no anonymous-inners, no Java code, just instantiate objects and have inputs and outputs...
break-down from binder and composer section...
Prev: BlocksInJavaCompositors Next: BlocksInJavaDiscussion Top: BlocksInJava