@Test public void testStringAcceptAnything() { assertTrue(new TypeConstraint(StringType.INSTANCE).validate(ANY_OBJECT)); }
@Override public boolean validate(Object object) { if (object == null) { return true; } return type.validate(object); }
TypeConstraint extends AbstractConstraint { @Override public boolean validate(Object object) { if (object == null) { return true; } return type.validate(object); } }
TypeConstraint extends AbstractConstraint { @Override public boolean validate(Object object) { if (object == null) { return true; } return type.validate(object); } TypeConstraint(PrimitiveType type); }
TypeConstraint extends AbstractConstraint { @Override public boolean validate(Object object) { if (object == null) { return true; } return type.validate(object); } TypeConstraint(PrimitiveType type); @Override boolean validate(Object object); @Override Description getDescription(); Type getType(); @Override int hashCode(); @Override boolean equals(Object obj); }
TypeConstraint extends AbstractConstraint { @Override public boolean validate(Object object) { if (object == null) { return true; } return type.validate(object); } TypeConstraint(PrimitiveType type); @Override boolean validate(Object object); @Override Description getDescription(); Type getType(); @Override int hashCode(); @Override boolean equals(Object obj);  }