|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.data.trees.constraints.BaseConstraint<T>
org.gcube.data.trees.constraints.Same<T>
public class Same<T>
Constrains values to be equal to a given one (in the Object.equals(Object) sense).
| Constructor Summary | |
|---|---|
Same(Object o)
Creates an instance from a value. |
|
| Method Summary | |
|---|---|
boolean |
accepts(Object t)
Returns true if a value satisfies the constraint. |
Object |
as()
|
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 |
|---|
public Same(Object o)
o - the value.| Method Detail |
|---|
public boolean accepts(Object t)
true if a value satisfies the constraint.
t - the value.
true if the value satisfies the constraint, false if it does not.public String toString()
toString in class BaseConstraint<T>public Object as()
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||