public class ColorItem extends SearchableItem
SearchableItem, since in addition to a specific color,
it has 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.
A simple immutable value class.| Modifier and Type | Field and Description |
|---|---|
Color |
color
The color that is represented by this item.
|
String |
colorName
The name of the color represented by this item, for textual display.
|
id, labelpublic final Color color
public final String colorName
public ColorItem(int id,
String label,
Color color,
String colorName)
id - the database ID associated with this item, for searcheslabel - the text label used to show this item to the usercolor - the color represented by this itemcolorName - the name of the color represented by this item, for textual displaypublic String toString()
toString in class SearchableItempublic int hashCode()
hashCode in class SearchableItempublic boolean equals(Object obj)
equals in class SearchableItemCopyright © 2016–2018 Deep Symmetry, LLC. All rights reserved.