Modifier and Type | Class | Description |
---|---|---|
static class |
Sound.Type |
Modifier and Type | Field | Description |
---|---|---|
private java.awt.image.BufferedImage |
cover |
|
private java.lang.String |
coverPath |
|
private int |
currentFile |
|
static java.awt.image.BufferedImage |
DEFAULT_COVER |
|
static java.awt.image.BufferedImage |
FALSE |
|
private java.lang.String |
filePath |
Deprecated.
|
private java.lang.String[] |
filePaths |
|
private boolean |
isSpotifySound |
|
private static org.apache.logging.log4j.Logger |
logger |
|
private java.lang.String |
name |
|
static java.awt.image.BufferedImage |
OK |
|
private java.util.Map<java.lang.String,java.util.List<SoundPluginMetadata>> |
pluginMetadata |
|
private java.lang.String |
spotifyId |
|
private java.lang.String |
spotifyOwner |
|
private java.lang.String |
spotifyType |
|
private java.util.List<java.lang.String> |
tags |
|
private Sound.Type |
type |
Constructor | Description |
---|---|
Sound(java.lang.String name,
java.lang.String[] filePaths,
java.awt.image.BufferedImage cover,
Sound.Type type,
java.lang.String[] tags) |
|
Sound(java.lang.String name,
java.lang.String[] filePaths,
java.awt.image.BufferedImage cover,
Sound.Type type,
java.lang.String[] tags,
java.util.Map<java.lang.String,java.util.List<SoundPluginMetadata>> pluginMetadata) |
|
Sound(java.lang.String name,
java.lang.String[] filePaths,
java.lang.String coverPath,
Sound.Type type,
java.lang.String[] tags) |
|
Sound(java.lang.String name,
java.lang.String[] filePaths,
java.lang.String coverPath,
Sound.Type type,
java.lang.String[] tags,
java.util.Map<java.lang.String,java.util.List<SoundPluginMetadata>> pluginMetadata) |
|
Sound(java.lang.String name,
java.lang.String[] filePaths,
Sound.Type type,
java.lang.String[] tags,
java.util.Map<java.lang.String,java.util.List<SoundPluginMetadata>> pluginMetadata) |
|
Sound(java.lang.String name,
java.lang.String spotifyOwner,
java.lang.String spotifyId,
java.lang.String spotifyType,
Sound.Type type) |
|
Sound(java.lang.String name,
java.lang.String filePath,
java.lang.String coverPath,
Sound.Type type,
java.lang.String[] tags) |
Modifier and Type | Method | Description |
---|---|---|
void |
addMetadataFor(java.lang.String pluginClass,
java.util.List<SoundPluginMetadata> metadata) |
|
private void |
checkLegacy() |
|
int |
compareTo(Sound o) |
|
boolean |
containedInTags(java.lang.String search) |
|
java.awt.image.BufferedImage |
getCover() |
|
java.lang.String |
getCoverPath() |
|
java.lang.String |
getCurrentFile() |
|
java.lang.String[] |
getFilePaths() |
|
java.util.Map<java.lang.String,java.util.List<SoundPluginMetadata>> |
getMetadata() |
|
java.util.List<SoundPluginMetadata> |
getMetadataFor(java.lang.String pluginClass) |
|
java.lang.String |
getName() |
|
java.lang.String |
getSpotifyId() |
|
java.lang.String |
getSpotifyOwner() |
|
java.lang.String |
getSpotifyType() |
|
java.util.List<java.lang.String> |
getTags() |
|
Sound.Type |
getType() |
|
boolean |
hasNext() |
|
boolean |
isAmbience() |
|
boolean |
isPlaylist() |
|
boolean |
isSpotifySound() |
|
private void |
loadCover() |
|
java.lang.String |
next() |
|
void |
removeMetadataFor(java.lang.String pluginClass) |
|
void |
resetCurrentFile() |
|
static void |
save(Sound s,
java.nio.file.Path file) |
|
void |
setCover(java.awt.image.BufferedImage cover) |
|
void |
setCoverPath(java.lang.String coverPath) |
|
void |
setCurrentFile(int currentFile) |
|
void |
setFilePaths(java.lang.String[] filePaths) |
|
void |
setMetadata(java.util.Map<java.lang.String,java.util.List<SoundPluginMetadata>> metadata) |
|
void |
setName(java.lang.String name) |
|
void |
setTags(java.util.List<java.lang.String> tags) |
|
void |
setType(Sound.Type type) |
|
java.lang.String |
toString() |
public static java.awt.image.BufferedImage OK
public static java.awt.image.BufferedImage FALSE
public static java.awt.image.BufferedImage DEFAULT_COVER
private static org.apache.logging.log4j.Logger logger
private java.lang.String name
private java.lang.String[] filePaths
@Deprecated private java.lang.String filePath
private transient int currentFile
private java.lang.String coverPath
private transient java.awt.image.BufferedImage cover
private java.util.List<java.lang.String> tags
private Sound.Type type
private boolean isSpotifySound
private java.lang.String spotifyOwner
private java.lang.String spotifyId
private java.lang.String spotifyType
private java.util.Map<java.lang.String,java.util.List<SoundPluginMetadata>> pluginMetadata
public Sound(java.lang.String name, java.lang.String filePath, java.lang.String coverPath, Sound.Type type, java.lang.String[] tags)
public Sound(java.lang.String name, java.lang.String[] filePaths, java.lang.String coverPath, Sound.Type type, java.lang.String[] tags)
public Sound(java.lang.String name, java.lang.String[] filePaths, java.lang.String coverPath, Sound.Type type, java.lang.String[] tags, java.util.Map<java.lang.String,java.util.List<SoundPluginMetadata>> pluginMetadata)
public Sound(java.lang.String name, java.lang.String[] filePaths, java.awt.image.BufferedImage cover, Sound.Type type, java.lang.String[] tags)
public Sound(java.lang.String name, java.lang.String[] filePaths, java.awt.image.BufferedImage cover, Sound.Type type, java.lang.String[] tags, java.util.Map<java.lang.String,java.util.List<SoundPluginMetadata>> pluginMetadata)
public Sound(java.lang.String name, java.lang.String[] filePaths, Sound.Type type, java.lang.String[] tags, java.util.Map<java.lang.String,java.util.List<SoundPluginMetadata>> pluginMetadata)
public Sound(java.lang.String name, java.lang.String spotifyOwner, java.lang.String spotifyId, java.lang.String spotifyType, Sound.Type type)
private void checkLegacy()
public static void save(Sound s, java.nio.file.Path file)
public java.util.List<java.lang.String> getTags()
public int compareTo(Sound o)
compareTo
in interface java.lang.Comparable<Sound>
public java.lang.String toString()
toString
in class java.lang.Object
public boolean hasNext()
hasNext
in interface java.util.Iterator<java.lang.String>
public java.lang.String next()
next
in interface java.util.Iterator<java.lang.String>
public boolean isPlaylist()
public java.lang.String getCoverPath()
public java.lang.String getCurrentFile()
public void resetCurrentFile()
public java.lang.String[] getFilePaths()
public java.lang.String getName()
public Sound.Type getType()
public void setCoverPath(java.lang.String coverPath)
public void setCurrentFile(int currentFile)
public void setFilePaths(java.lang.String[] filePaths)
public void setName(java.lang.String name)
public void setTags(java.util.List<java.lang.String> tags)
public void setType(Sound.Type type)
public boolean isSpotifySound()
public java.lang.String getSpotifyId()
public java.lang.String getSpotifyOwner()
public java.lang.String getSpotifyType()
public java.util.List<SoundPluginMetadata> getMetadataFor(java.lang.String pluginClass)
public void addMetadataFor(java.lang.String pluginClass, java.util.List<SoundPluginMetadata> metadata)
public void removeMetadataFor(java.lang.String pluginClass)
public java.util.Map<java.lang.String,java.util.List<SoundPluginMetadata>> getMetadata()
public boolean isAmbience()
private void loadCover()
public java.awt.image.BufferedImage getCover()
public void setMetadata(java.util.Map<java.lang.String,java.util.List<SoundPluginMetadata>> metadata)
public void setCover(java.awt.image.BufferedImage cover)
public boolean containedInTags(java.lang.String search)