tv-provider/src/main/java/androidx/tvprovider/media/tv/TvContractCompat.java
public static String encode(@NonNull @Genre String... genres) {
                if (genres == null) {
                    // MNC and before will throw a NPE.
                    return null;
                }
                StringBuilder sb = new StringBuilder();
                String separator = "";
                for (String genre : genres) {
                    sb.append(separator).append(encodeToCsv(genre));
                    separator = DELIMITER;
                }
                return sb.toString();
            }
/**
             * Encodes genre strings to a text that can be put into the database.
             *
             * @param genres Genre strings.
             * @return an encoded genre string that can be inserted into the
             *         {@link #COLUMN_BROADCAST_GENRE} or {@link #COLUMN_CANONICAL_GENRE} column.
             */
Encodes genre strings to a text that can be put into the database.
@param genres Genre strings.
@return an encoded genre string that can be inserted into the
#COLUMN_BROADCAST_GENRE or  #COLUMN_CANONICAL_GENRE column.
Encodes genre strings to a text that can be put into the database . @param genres Genre strings . @return an encoded genre string that can be inserted into the #COLUMN_BROADCAST_GENRE or #COLUMN_CANONICAL_GENRE column .
public static String encode(@NonNull @Genre String... genres) {
                if (genres == null) {
                    return null;
                }
                StringBuilder sb = new StringBuilder();
                String separator = "";
                for (String genre : genres) {
                    sb.append(separator).append(encodeToCsv(genre));
                    separator = DELIMITER;
                }
                return sb.toString();
            }
public static String encode ( @ NonNull @ Genre String ... genres ) { if ( genres == null ) { return null ; } StringBuilder sb = new StringBuilder ( ) ; String separator = "" ; for ( String genre : genres ) { sb . append ( separator ) . append ( encodeToCsv ( genre ) ) ; separator = DELIMITER ; } return sb . toString ( ) ; }
Encodes genre strings to a text that can be put into the database.
Encodes genre strings to a text that can be put into the database .
// MNC and before will throw a NPE.