Constraint (jMock API Documentation)
Keywords: org.jmock.core.Constraint interface

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jmock.core
Interface Constraint

All Superinterfaces:
  SelfDescribing

All Known Implementing Classes:
  And, HasProperty, HasPropertyWithValue, HasToString, IsAnything, IsArrayContaining, IsCloseTo, IsCollectionContaining, IsCompatibleType, IsEqual, IsEventFrom, IsGreaterThan, IsIn, IsInstanceOf, IsLessThan, IsMapContaining, IsNot, IsNothing, IsNull, IsSame, Or, StringContains, StringEndsWith, StringStartsWith, SubstringConstraint

    public interface Constraint

extends SelfDescribing

A constraint over acceptable values.

Since:
  1.0

Method Summary
`boolean` | `eval(Object o)` Evaluates the constraint for argument o.

Methods inherited from interface org.jmock.core.SelfDescribing
`describeTo`

Method Detail

### eval

    boolean eval(Object o)

  Evaluates the constraint for argument o.

  Parameters:
    `o` - the object against which the constraint is evaluated.
  Returns:
    `true` if o meets the constraint, `false` if it does not.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD