org.gcube.contentmanagement.contentmanager.stubs.model.constraints
Class Before
java.lang.Object
org.gcube.contentmanagement.contentmanager.stubs.model.constraints.BaseConstraint<java.util.Calendar>
org.gcube.contentmanagement.contentmanager.stubs.model.constraints.Before
- All Implemented Interfaces:
- java.io.Serializable, Constraint<java.util.Calendar>
public class Before
- extends BaseConstraint<java.util.Calendar>
Constraints Calendar
values to be earlier than a given one.
- Author:
- Fabio Simeoni (University of Strathclyde)
- See Also:
- Serialized Form
Method Summary |
boolean |
accepts(java.util.Calendar d)
Indicates whether a value satisfies the constraint. |
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
accepts
public boolean accepts(java.util.Calendar d)
- Indicates whether a value satisfies the constraint.
- Parameters:
d
- the value.
- Returns:
true
if it does, false
otherwise.
toString
public java.lang.String toString()
-
- Overrides:
toString
in class BaseConstraint<java.util.Calendar>
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object