org.gcube.data.trees.constraints
Class Before
java.lang.Object
org.gcube.data.trees.constraints.BaseConstraint<Calendar>
org.gcube.data.trees.constraints.Before
- All Implemented Interfaces:
- Serializable, Constraint<Calendar>
public class Before
- extends BaseConstraint<Calendar>
Accepts Calendar values that precede a given one.
- Author:
- Fabio Simeoni
- See Also:
- Serialized Form
|
Constructor Summary |
Before(Calendar c)
Creates an instance with a given calendar. |
Before
public Before(Calendar c)
- Creates an instance with a given calendar.
- Parameters:
c - the calendar
accepts
public boolean accepts(Calendar d)
- Returns
true if a value satisfies the constraint.
- Parameters:
d - the value.
- Returns:
true if the value satisfies the constraint, false if it does not.
toString
public String toString()
-
- Overrides:
toString in class BaseConstraint<Calendar>
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
Copyright © 2012. All Rights Reserved.