| Modifier and Type | Method and Description |
|---|---|
static Collection<Television> |
findByBrand(String brand)
Searches catalog by brand.
|
static Map<String,Collection<Television>> |
findByBrands(String... brands)
Searches catalog by several brands.
|
static Collection<Television> |
getInventory()
Returns entire catalog.
NOTE: returned collection is read-only. |
public static Collection<Television> findByBrand(String brand)
brand - the specified brand. Searches are case-sensitive.findByBrands(String...),
String.equals(Object)public static Map<String,Collection<Television>> findByBrands(String... brands)
Map with an entry for each brand supplied,
along with a collection of matching Televisions for that brand.brands - varargs parameter of desired brands.Mappublic static Collection<Television> getInventory()