public static boolean isEmpty ( final Label label ) { for ( Label . MapFieldEntry entry : label . getEntryList ( ) ) { for ( String value : entry . getValueList ( ) ) { if ( ! value . isEmpty ( ) ) { return false ; } } } return true ; }
Test if the label is empty . This means that every label list for every languageCode is empty or that it only contains empty string .