org.gcube.data.trees.constraints
Class After

java.lang.Object
  extended by org.gcube.data.trees.constraints.BaseConstraint<Calendar>
      extended by org.gcube.data.trees.constraints.After
All Implemented Interfaces:
Serializable, Constraint<Calendar>

public class After
extends BaseConstraint<Calendar>

Accepts Calendar values that follow a given one.

Author:
Fabio Simeoni
See Also:
Serialized Form

Constructor Summary
After(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

After

public After(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>

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object


Copyright © 2012. All Rights Reserved.