Search this API

y.util
Interface Filter

All Known Implementing Classes:
VisibilityFilter

public interface Filter

Specifies the contract of a general purpose filter. A filter is a predicate-style functor that either accepts or rejects a given test object.

 

Method Summary
 boolean accept(java.lang.Object o)
          Tests whether the specified Object should be accepted (or rejected) by this filter implementation.
 

Method Detail

accept

boolean accept(java.lang.Object o)
Tests whether the specified Object should be accepted (or rejected) by this filter implementation.

Parameters:
o - the Object to be tested.
Returns:
true iff this filter accepts the specified Object; false otherwise.

© Copyright 2000-2017,
yWorks GmbH.
All rights reserved.