org.gcube.contentmanagement.contentmanager.stubs.model.constraints
Class AnyValue

java.lang.Object
  extended by org.gcube.contentmanagement.contentmanager.stubs.model.constraints.BaseConstraint<java.lang.Object>
      extended by org.gcube.contentmanagement.contentmanager.stubs.model.constraints.AnyValue
All Implemented Interfaces:
java.io.Serializable, Constraint<java.lang.Object>

public class AnyValue
extends BaseConstraint<java.lang.Object>

The 'null' constraint that does not constrain any value of any type.

Author:
Fabio Simeoni (University of Strathclyde)
See Also:
Serialized Form

Constructor Summary
AnyValue()
           
 
Method Summary
 boolean accepts(java.lang.Object t)
          Indicates whether a value satisfies the constraint.
 boolean equals(java.lang.Object obj)
          
 int hashCode()
          
 
Methods inherited from class org.gcube.contentmanagement.contentmanager.stubs.model.constraints.BaseConstraint
toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnyValue

public AnyValue()
Method Detail

accepts

public boolean accepts(java.lang.Object t)
Indicates whether a value satisfies the constraint.

Parameters:
t - the value.
Returns:
true if it does, false otherwise.

equals

public boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object