|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.rim.device.api.command.registrar.CategoryCollection
net.rim.device.api.command.registrar.NullCategoryCollection
public final class NullCategoryCollection
Null Object implementation of CategoryCollection as a stateless singleton.
All methods that mutate a CategoryCollection are overridden in this class and do not modify the object.
| Method Summary | ||
|---|---|---|
boolean |
add(String category)
Does not add the specified category. |
|
boolean |
addAll(String[] categories)
Does not add all the specified categories. |
|
boolean |
addAll(CategoryCollection categories)
Does not add all the specified categories. |
|
static NullCategoryCollection |
getInstance()
Returns a singleton instance. |
|
| Methods inherited from class net.rim.device.api.command.registrar.CategoryCollection |
|---|
clear, contains, containsAll, containsAny, isEmpty, remove, removeAll, retainAll, size, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static NullCategoryCollection getInstance()
NullCategoryCollection singleton instance.public boolean add(String category)
add in class CategoryCollectioncategory - Category to add.
false.public boolean addAll(CategoryCollection categories)
addAll in class CategoryCollectioncategories - Collection of categories to add.
false.public boolean addAll(String[] categories)
addAll in class CategoryCollectioncategories - Array of categories to add. If categories is null, the collection is not modified.
false.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.