org.avis.util
Interface Filter<T>

All Known Implementing Classes:
WildcardFilter

public interface Filter<T>

A filter that selects values of the generic type T.

Author:
Matthew Phillips

Field Summary
static Filter<?> MATCH_ALL
          Matches nothing.
static Filter<?> MATCH_NONE
          Matches anything.
 
Method Summary
 boolean matches(T value)
          Test if the filter matches.
 

Field Detail

MATCH_NONE

static final Filter<?> MATCH_NONE
Matches anything.


MATCH_ALL

static final Filter<?> MATCH_ALL
Matches nothing.

Method Detail

matches

boolean matches(T value)
Test if the filter matches.

Parameters:
value - The value to test.
Returns:
True if the fiLter matches.


Copyright © 2008 Matthew Phillips. All Rights Reserved.