|
||||||||||
| 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 | |
|---|---|
java.util.Set<java.lang.Long> |
register(java.lang.String genres)
Registers a genre and returns a list of ids of registered genres. |
static java.lang.Iterable<java.lang.String> |
splitGenres(java.lang.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 java.util.Set<java.lang.Long> register(java.lang.String genres)
genres - the genre to register, a comma-separated list of genres.
public static java.lang.Iterable<java.lang.String> splitGenres(java.lang.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 | |||||||||