Package edu.uci.ics.jung.graph.predicates

A Predicate tests whether an Object satisfies a specific implementation-defined property.

See: Description

Package edu.uci.ics.jung.graph.predicates Description

A Predicate tests whether an Object satisfies a specific implementation-defined property. Predicates may be logically combined using such Jakarta-defined predicates as AndPredicate (which returns true if all input predicates return true). JUNG uses Predicates (found in the graph.predicates package) for the following tasks:

Note: Some predicates are unsuitable for use as constraints (and some predicates are only suitable for use as constraints). We have tried to make these distinctions clear in the documentation for each predicate. Users are advised to read the documentation for a predicate before using it. Some general rules for which predicates are appropriate in different circumstances:

JUNG Predicates that do not take constructor arguments are accessed via a static getInstance call; other Predicates are created with the usual constructor call.

For more information on Predicates and their use, see the commons-collections website.