public boolean checkForType(Types type){
  if (types == null) {
    return false;
  }
 else {
    return types.contains(type.toString());
  }
}

public boolean checkForType ( Types type ) { if ( types == null ) { return false ; } else { return types . contains ( type . toString ( ) ) ; } }
determines if the consistency group has the passed type .
