org.gcube.data.trees.constraints
Interface Constraint<T>

Type Parameters:
T - the type of the constrained values.
All Superinterfaces:
Serializable
All Known Implementing Classes:
After, AfterDate, All, AnyValue, BaseConstraint, Before, BeforeDate, Either, Less, Match, More, Not, Same

public interface Constraint<T>
extends Serializable

Accepts typed values that satisfy a given constraint.

Author:
Fabio Simeoni

Method Summary
 boolean accepts(T v)
          Returns true if a value satisfies the constraint.
 

Method Detail

accepts

boolean accepts(T v)
Returns true if a value satisfies the constraint.

Parameters:
v - the value.
Returns:
true if the value satisfies the constraint, false if it does not.


Copyright © 2012. All Rights Reserved.