|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.data.trees.constraints.BaseConstraint<Object>
org.gcube.data.trees.constraints.Match
public class Match
Accepts values that match a given regular expression when converted to String.
| Constructor Summary | |
|---|---|
Match(String regex)
Creates an instance from a regular expression. |
|
| Method Summary | |
|---|---|
boolean |
accepts(Object o)
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 |
|---|
public Match(String regex)
regex - the regular expression| Method Detail |
|---|
public boolean accepts(Object o)
true if a value satisfies the constraint.
o - the value.
true if the value satisfies the constraint, false if it does not.public String toString()
toString in class BaseConstraint<Object>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 | |||||||||