class EqualsPredicate extends ComparisonPredicate<T> {

  @Override
  public boolean evaluate(Resource resource) {
    Object propertyValue  = resource.getPropertyValue(getPropertyId());
    Object predicateValue = getValue();

    return predicateValue == null ?
        propertyValue == null :
        propertyValue != null && compareValueTo(propertyValue) == 0;
  }

  public  EqualsPredicate(String propertyId, Comparable<T> value);

}