org.gcube.data.trees.constraints
Class AnyValue

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

public class AnyValue
extends BaseConstraint<Object>

Accepts any value.

Author:
Fabio Simeoni
See Also:
Serialized Form

Constructor Summary
AnyValue()
           
 
Method Summary
 boolean accepts(Object t)
          Returns true if a value satisfies the constraint.
 boolean equals(Object obj)
          
 int hashCode()
          
 
Methods inherited from class org.gcube.data.trees.constraints.BaseConstraint
toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnyValue

public AnyValue()
Method Detail

accepts

public boolean accepts(Object t)
Returns true if a value satisfies the constraint.

Parameters:
t - the value.
Returns:
true if the value satisfies the constraint, false if it does not.

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object


Copyright © 2013. All Rights Reserved.