org.gcube.data.trees.constraints
Class Before

java.lang.Object
  extended by org.gcube.data.trees.constraints.BaseConstraint<Calendar>
      extended by 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.
 
Method Summary
 boolean accepts(Calendar d)
          Returns true if a value satisfies the constraint.
 boolean equals(Object obj)
           
 int hashCode()
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Before

public Before(Calendar c)
Creates an instance with a given calendar.

Parameters:
c - the calendar
Method Detail

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.