public Builder ifMatches(Filter filter) {
      this.filter = Preconditions.checkNotNull(filter, "filter is null");
      return this;
    }
Check for match
@param filter filter to check
@return the CheckAndMutate object
hbase-client/src/main/java/org/apache/hadoop/hbase/client/CheckAndMutate.java