public boolean hasFeature(int feature){
  return ((feature >= MODE_FIRST && feature <= MODE_LAST) || (feature >= FEATURE_FIRST && feature <= FEATURE_LAST)) && (feature == MODE_OFF || mCapabilities.get(feature));
}

public boolean hasFeature ( int feature ) { return ( ( feature >= MODE_FIRST && feature <= MODE_LAST ) || ( feature >= FEATURE_FIRST && feature <= FEATURE_LAST ) ) && ( feature == MODE_OFF || mCapabilities . get ( feature ) ) ; }
checks if a particular feature or mode is supported by the system .
