media/src/main/java/androidx/media/MediaMetadata2.java
public @NonNull Builder putFloat(@NonNull @LongKey String key, float value) {
            if (key == null) {
                throw new IllegalArgumentException("key shouldn't be null");
            }
            if (METADATA_KEYS_TYPE.containsKey(key)) {
                if (METADATA_KEYS_TYPE.get(key) != METADATA_TYPE_FLOAT) {
                    throw new IllegalArgumentException("The " + key
                            + " key cannot be used to put a float");
                }
            }
            mBundle.putFloat(key, value);
            return this;
        }
/**
         * Put a float value into the metadata. Custom keys may be used.
         *
         * @param key The key for referencing this value
         * @param value The float value to store
         * @return The Builder to allow chaining
         */
Put a float value into the metadata. Custom keys may be used.
@param key The key for referencing this value
@param value The float value to store
@return The Builder to allow chaining
Put a float value into the metadata . Custom keys may be used . @param key The key for referencing this value @param value The float value to store @return The Builder to allow chaining
public @NonNull Builder putFloat(@NonNull @LongKey String key, float value) {
            if (key == null) {
                throw new IllegalArgumentException("key shouldn't be null");
            }
            if (METADATA_KEYS_TYPE.containsKey(key)) {
                if (METADATA_KEYS_TYPE.get(key) != METADATA_TYPE_FLOAT) {
                    throw new IllegalArgumentException("The " + key
                            + " key cannot be used to put a float");
                }
            }
            mBundle.putFloat(key, value);
            return this;
        }
public @ NonNull Builder putFloat ( @ NonNull @ LongKey String key , float value ) { if ( key == null ) { throw new IllegalArgumentException ( "key shouldn't be null" ) ; } if ( METADATA_KEYS_TYPE . containsKey ( key ) ) { if ( METADATA_KEYS_TYPE . get ( key ) != METADATA_TYPE_FLOAT ) { throw new IllegalArgumentException ( "The " + key + " key cannot be used to put a float" ) ; } } mBundle . putFloat ( key , value ) ; return this ; }
Put a float value into the metadata.
Put a float value into the metadata .