Menu

Predicate collections.

2004-05-30
2004-06-20
  • Peter Veentjer

    Peter Veentjer - 2004-05-30

    Maybe it would be an idea to add predicate collections, so a simple predicate can be added to a collection to check the validity of the new element.

    interface Predicate<T>{
         boolean valid(T item).
    }

    And maybe it would be an idea to add a null rejecting predicate.

    I have written 'ncollections' These are null rejecting predicate collection with the advantage that you have a new type: NList, NCollection, NSet etc. Now you can force someone to use a specific kind of collection. I only don`t have the time to maintain it ;)

     
    • Joerg Wassmer

      Joerg Wassmer - 2004-06-02

      Good suggestion.
      I will implement it.

      j.

       
    • Joerg Wassmer

      Joerg Wassmer - 2004-06-20

      Just released jaxlib-0.3.1
      The package jaxlib.col.filtered implements predicated collections. Just named it "filtered" to be coherent with package jaxlib.closure.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.