data/raw/hbase/hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java
/**
   * Determines if there is a coprocessor implementation in the provided argument which extends
   * or implements the provided {@code service}.
   */
Determines if there is a coprocessor implementation in the provided argument which extends
or implements the provided  service.
Determines if there is a coprocessor implementation in the provided argument which extends or implements the provided service .
boolean checkCoprocessorWithService(
      List<MasterCoprocessor> coprocessorsToCheck, Class<?> service) {
    if (coprocessorsToCheck == null || coprocessorsToCheck.isEmpty()) {
      return false;
    }
    for (MasterCoprocessor cp : coprocessorsToCheck) {
      if (service.isAssignableFrom(cp.getClass())) {
        return true;
      }
    }
    return false;
  }
boolean checkCoprocessorWithService ( List < MasterCoprocessor > coprocessorsToCheck , Class < ? > service ) { if ( coprocessorsToCheck == null || coprocessorsToCheck . isEmpty ( ) ) { return false ; } for ( MasterCoprocessor cp : coprocessorsToCheck ) { if ( service . isAssignableFrom ( cp . getClass ( ) ) ) { return true ; } } return false ; }
Determines if there is a coprocessor implementation in the provided argument which extends
 or implements the provided {@code service}.
Determines if there is a coprocessor implementation in the provided argument which extends or implements the provided { @code service } .