int getBucketIndex(String bucketName) {

        if (bucketName.equals(BUCKET_OTHER)) {
            return 0;
        }
        for (int i = 0; i < m_bucketNames.size(); i++) {
            if (m_bucketNames.get(i).equals(bucketName)) {
                return 1 + i;
            }
        }
        return -1;
    }
int getBucketIndex ( String bucketName ) { if ( bucketName . equals ( BUCKET_OTHER ) ) { return 0 ; } for ( int i = 0 ; i < m_bucketNames . size ( ) ; i ++ ) { if ( m_bucketNames . get ( i ) . equals ( bucketName ) ) { return 1 + i ; } } return - 1 ; }
Gets the bucket bit index for the given bucket name.<p>

@param bucketName a bucket name
@return the bit index for the bucket