CodecParameters
@UnstableApi
public final class CodecParameters
An immutable collection of parameters to be applied to a codec.
Summary
Nested types |
|---|
public final class CodecParameters.BuilderA builder for |
Constants |
|
|---|---|
static final CodecParameters |
An empty |
Public methods |
|
|---|---|
CodecParameters.Builder |
Returns a new |
boolean |
|
@Nullable Object |
Retrieves a parameter value by its key. |
int |
hashCode() |
Set<String> |
keySet()Returns a |
Constants
Public methods
buildUpon
public CodecParameters.Builder buildUpon()
Returns a new Builder initialized with the values of this instance.
get
public @Nullable Object get(String key)
Retrieves a parameter value by its key.
Note: If the returned value is a ByteBuffer, it must be treated as read-only. Modifying the returned ByteBuffer will affect this CodecParameters instance and may lead to unexpected behavior.
| Parameters | |
|---|---|
String key |
A string representing the key of the codec parameter. |