public class AudioType extends Object implements IResourceType
Represents one supportable audio type (format)
| Constructor and Description |
|---|
AudioType() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(AudioType other)
Determines whether this instance is equal with specified "AudioType" instance
|
boolean |
equals(Object obj)
Determines whether this instance is equal with specified uncasted object, which presumably is another "AudioType" instance
|
String |
getFileExtension()
Filename extension (without dot character) for this audio format
|
String |
getFormalName()
Formal name of this audio format
|
String |
getMimeCode()
MIME code for this audio format
|
static AudioType |
getMp3()
Represents a MPEG-1 Audio Layer III audio format
|
static AudioType |
getUndefined()
Special value, which marks undefined, unknown or unsupported audio format
|
int |
hashCode()
Returns a hash-code, which is a constant number for this specific value type
|
static boolean |
op_Equality(AudioType first,
AudioType second)
Checks whether two "AudioType" values are equal
|
static boolean |
op_Inequality(AudioType first,
AudioType second)
Checks whether two "AudioType" values are not equal
|
static AudioType |
parseFromFilenameWithExtension(String filename)
Returns AudioType value, which is equivalent of filename extension, which is extracted from specified filename
|
public final boolean equals(AudioType other)
Determines whether this instance is equal with specified "AudioType" instance
other - Other AudioType instance to check with thispublic boolean equals(Object obj)
Determines whether this instance is equal with specified uncasted object, which presumably is another "AudioType" instance
public final String getFileExtension()
Filename extension (without dot character) for this audio format
getFileExtension in interface IResourceTypepublic final String getFormalName()
Formal name of this audio format
getFormalName in interface IResourceTypepublic final String getMimeCode()
MIME code for this audio format
getMimeCode in interface IResourceTypepublic static AudioType getMp3()
Represents a MPEG-1 Audio Layer III audio format
public static AudioType getUndefined()
Special value, which marks undefined, unknown or unsupported audio format
public int hashCode()
Returns a hash-code, which is a constant number for this specific value type
public static boolean op_Equality(AudioType first, AudioType second)
Checks whether two "AudioType" values are equal
first - First AudioType to checksecond - Second AudioType to checkpublic static boolean op_Inequality(AudioType first, AudioType second)
Checks whether two "AudioType" values are not equal
first - First AudioType to checksecond - Second AudioType to checkpublic static AudioType parseFromFilenameWithExtension(String filename)
Returns AudioType value, which is equivalent of filename extension, which is extracted from specified filename
filename - Arbitrary filename, can be a relative or full pathCopyright © 2024. All rights reserved.