Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: converted to 1.6 markup

...

Predicate Logic

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="00ef7f40-3a0c-4eec-be8d-7bbe4978d9f8"><ac:plain-text-body><![CDATA[

Q: Is there some easy way to chain predicates – or do complex boolean logic. I would like to build a rule system based on the Predicate type but I dont like how the evaluate method takes an Object. I would rather have each Predicate be "setup" via some sort of interface PredicateContext (rather than Object) in the constructor (or factory method in this case).

A: The collections project provides a complete set of predicates including And and Or in the functor subpackage. However, for full functor based programming please consider using commons-functor at http://jakarta.apache.org/commons/

...

[http://jakarta.apache.org/commons/component/ Commons-Component] (add component discription).[BR] A lot of information is available on the [http://jakarta.apache.org/commons/component/ Component website]. If you don't find the information you need you can always contact us using one of the [http://jakarta.apache.org/site/mail2.html#Commons mailing lists].

...

]]></ac:plain-text-body></ac:structured-macro>

External Resources

Do you have a good example, add it here!

FAQ

...

sandbox/functor

Java 1.5 Support

Q: Does the collections project support any features of the new Java 1.5 language standard?

A: There is an unofficial release available at http://collections.sf.net which adds type safety to all classes that don't break the Java collections interfaces. There are a couple outstanding decisions to be made on how to convert some of the classes which do violate an interface, but for the most part it should be ready for use.

...

Q: When will the commons-functor package "go live"?

...

Q: What About The Mysterious LRUMap NPE?

A: See CollectionsMysteriousNullPointerException