Package org.deepsymmetry.beatlink.data
Class SearchableItem
- java.lang.Object
-
- org.deepsymmetry.beatlink.data.SearchableItem
-
- Direct Known Subclasses:
ColorItem
public class SearchableItem extends Object
Represents an item with an ID and label that can be used as a way to select tracks in a dynamic playlist request, and on which playlists can be sorted. Many track metadata entries, like artist, genre, and the color labels, are represented this way. A simple immutable value class.- Author:
- James Elliott
-
-
Constructor Summary
Constructors Constructor Description SearchableItem(int id, String label)
Constructor simply sets the immutable value fields.
-
-
-
Field Detail
-
id
public final int id
The database ID associated with this item, for searches.
-
label
public final String label
The text label used to show this item to the user.
-
-
Constructor Detail
-
SearchableItem
public SearchableItem(int id, String label)
Constructor simply sets the immutable value fields.- Parameters:
id
- the database ID associated with this item, for searcheslabel
- , the text label used to show this item to the user
-
-