|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.contentmanagement.contentmanager.stubs.model.constraints.BaseConstraint<T>
org.gcube.contentmanagement.contentmanager.stubs.model.constraints.All<T>
public class All<T>
Constrains values to satisfy one ore more constraints.
Constructor Summary | |
---|---|
All(Constraint<T>... cs)
Creates an instance from one more constraints. |
Method Summary | |
---|---|
boolean |
accepts(T t)
Indicates whether a value satisfies the constraint. |
Constraint<T>[] |
constraints()
|
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 |
Constructor Detail |
---|
public All(Constraint<T>... cs)
Method Detail |
---|
public Constraint<T>[] constraints()
public boolean accepts(T t)
Constraint
t
- the value.
true
if it does, false
otherwise.public java.lang.String toString()
toString
in class BaseConstraint<T>
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |