|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.baka.ambient.collection.CategoryItem.Builder
public static class CategoryItem.Builder
Builds the CategoryItem
.
Field Summary | |
---|---|
int |
albums
Contains a number of albums for given artist or genre. |
CategoryEnum |
category
The category of this item, must not be null . |
Object |
id
The collection-strategy-dependent ID, may be null . |
String |
name
The name of the item, may be null if the name is
missing. |
int |
songs
Contains a number of songs for given artist, genre or album. |
String |
year
In case of an album the year may be specified. |
Constructor Summary | |
---|---|
CategoryItem.Builder()
|
Method Summary | |
---|---|
CategoryItem |
build()
Builds new category item. |
CategoryItem.Builder |
getData(CategoryItem item)
Fills this builder with data from given item. |
CategoryItem.Builder |
setAlbums(int albums)
Contains a number of albums for given artist or genre. |
CategoryItem.Builder |
setCategory(CategoryEnum category)
Sets the category. |
CategoryItem.Builder |
setId(Object id)
Sets id. |
CategoryItem.Builder |
setName(String name)
Sets name. |
CategoryItem.Builder |
setSongs(int songs)
Contains a number of songs for given artist, genre or album. |
CategoryItem.Builder |
setYear(String year)
Sets year. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Object id
null
.
public String name
null
if the name is
missing.
public String year
null
if
not known.
public CategoryEnum category
null
.
public int albums
CategoryEnum.Title
and CategoryEnum.Album
categories. May be -1 if not known.
public int songs
CategoryEnum.Title
. May be -1 if not known.
Constructor Detail |
---|
public CategoryItem.Builder()
Method Detail |
---|
public CategoryItem build()
public CategoryItem.Builder setId(Object id)
id
- The collection-strategy-dependent ID, may be
null
.
public CategoryItem.Builder setName(String name)
name
- The name of the item.
public CategoryItem.Builder setYear(String year)
year
- In case of an album the year may be specified.
null
if not known.
public CategoryItem.Builder setCategory(CategoryEnum category)
category
- The category of this item, must not be null
.
public CategoryItem.Builder setAlbums(int albums)
CategoryEnum.Title
and CategoryEnum.Album
categories. May be -1 if not known.
albums
- The number of albums for this item.
public CategoryItem.Builder setSongs(int songs)
CategoryEnum.Title
. May be -1 if not known.
songs
- The number of songs for this item.
public CategoryItem.Builder getData(CategoryItem item)
item
- the item to read
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |