public static class SoundEffect.SoundEffectInfo extends Object
SystemCapability.Multimedia#AUDIO| 构造器 | 说明 |
|---|---|
SoundEffectInfo() |
A no-argument constructor used to create a
SoundEffectInfo instance. |
SoundEffectInfo(String uid,
String type,
String mode,
String name) |
A parameterized constructor used to create a
SoundEffectInfo instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
boolean |
equals(Object obj) |
Checks whether a given
obj is the same as the current sound effect. |
String |
getMode() |
Obtains a sound effect mode.
|
String |
getName() |
Obtains a sound effect name.
|
UUID |
getType() |
Obtains a sound effect type.
|
UUID |
getUid() |
Obtains a sound effect ID.
|
int |
hashCode() |
Generates a hash code value based on the ID, type, mode, and name of a sound effect.
|
void |
setMode(String mode) |
Sets a sound effect mode.
|
void |
setName(String name) |
Sets a sound effect name.
|
void |
setType(UUID type) |
Sets a sound effect type.
|
void |
setUid(UUID uid) |
Sets a sound effect ID.
|
public SoundEffectInfo()
SoundEffectInfo instance.public SoundEffectInfo(String uid, String type, String mode, String name)
SoundEffectInfo instance.uid - Indicates a sound effect ID.type - Indicates a sound effect type, which can be SoundEffect#SOUND_EFFECT_TYPE_EC,
SoundEffect#SOUND_EFFECT_TYPE_GC, or SoundEffect#SOUND_EFFECT_TYPE_NS.mode - Indicates a sound effect mode, which can be SoundEffect#SOUND_EFFECT_MODE_AUXILIARY,
SoundEffect#SOUND_EFFECT_MODE_INSERT, or
SoundEffect#SOUND_EFFECT_MODE_PRE_PROCESSING.name - Indicates the name of a sound effect.public UUID getUid()
public void setUid(UUID uid)
uid - Indicates the sound effect ID to set.public UUID getType()
public void setType(UUID type)
type - Indicates the sound effect type to set.public String getMode()
public void setMode(String mode)
mode - Indicates the sound effect mode to set.public String getName()
public void setName(String name)
name - Indicates the sound effect name to set.public boolean equals(Object obj)
obj is the same as the current sound effect.
They are the same if they have the same ID, type, mode, and name.
equals 在类中 Objectobj - Indicates a SoundEffectInfo object.true if obj is the same as the current sound effect;
returns false otherwise.Object.hashCode(),
HashMappublic int hashCode()
hashCode 在类中 ObjectObject.equals(java.lang.Object),
System.identityHashCode(java.lang.Object)