public boolean hasInterestFor(Object inputClientID) {
    Long clientID;
    if (inputClientID instanceof Long) {
      clientID = (Long) inputClientID;
    } else {
      Map<Object, Long> cids = clientMap.realIDs; // read
      clientID = cids.get(inputClientID);
      if (clientID == null) {
        return false;
      }
    }
    return hasAllKeysInterestFor(clientID, true) || hasKeysOfInterestFor(clientID, true)
        || hasRegexInterestFor(clientID, true) || hasFilterInterestFor(clientID, true)
        || hasKeysOfInterestFor(clientID, false) || hasRegexInterestFor(clientID, false)
        || hasAllKeysInterestFor(clientID, false)
        || hasFilterInterestFor(clientID, false);
  }
determines whether there is any remaining interest for the given identifier
geode-core/src/main/java/org/apache/geode/internal/cache/FilterProfile.java