|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsk.baka.ambient.library.GenreCache
public final class GenreCache
Handles genre cache and new genre creation.
| Constructor Summary | |
|---|---|
GenreCache(DBStrategy backend)
Creates new genre cache. |
|
| Method Summary | |
|---|---|
Set<Long> |
register(String genres)
Registers a genre and returns a list of ids of registered genres. |
static Iterable<String> |
splitGenres(String genreList)
Split given genre list (genres separated by , or ;). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
GenreCache(DBStrategy backend)
backend - the backend.| Method Detail |
|---|
public Set<Long> register(String genres)
genres - the genre to register, a comma-separated list of genres.
public static Iterable<String> splitGenres(String genreList)
genreList - the list to split. If null is given then an
empty iterable is returned.
String.trim() to get rid of surrounding
whitespaces.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||