|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.commons.iloader.node.collections.EmptyCollection
public class EmptyCollection
An empty collection. All of the methods in this class provide a default, skeleton implementation of the
com.ibm.commons.iloader.node.IObjectCollection
interface. As this class always provides a default
implementation it can be accessed statically via
com.ibm.commons.iloader.node.collections.EmptyCollection.getInstance()
.
Constructor Summary | |
---|---|
EmptyCollection()
Creates a new instance of this class. |
Method Summary | |
---|---|
boolean |
add(int index,
java.lang.Object object,
DataChangeNotifier dataChangeNotifier)
Returns false. |
java.lang.Object |
get(int index)
Returns null. |
static EmptyCollection |
getInstance()
Returns an instance of this class. |
java.lang.Object |
getParentObject()
Returns null. |
boolean |
remove(int index,
DataChangeNotifier dataChangeNotifier)
Returns false. |
boolean |
removeAll(DataChangeNotifier dataChangeNotifier)
Returns false. |
boolean |
set(int index,
java.lang.Object object,
DataChangeNotifier dataChangeNotifier)
Returns false. |
int |
size()
Returns zero. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EmptyCollection()
Method Detail |
---|
public static EmptyCollection getInstance()
public int size()
size
in interface IObjectCollection
public java.lang.Object get(int index)
get
in interface IObjectCollection
public boolean add(int index, java.lang.Object object, DataChangeNotifier dataChangeNotifier)
add
in interface IObjectCollection
index
- index at which the item should be insertedobject
- the new child to insertdataChangeNotifier
- a listener that is to be notified of the change
public boolean set(int index, java.lang.Object object, DataChangeNotifier dataChangeNotifier)
set
in interface IObjectCollection
index
- index at which the item should be insertedobject
- the new child to insertdataChangeNotifier
- a listener that is to be notified of the change
public boolean remove(int index, DataChangeNotifier dataChangeNotifier)
remove
in interface IObjectCollection
index
- the index of the child to removedataChangeNotifier
- a listener that is to be notified of the change
public boolean removeAll(DataChangeNotifier dataChangeNotifier)
removeAll
in interface IObjectCollection
dataChangeNotifier
- a listener that is to be notified of the change
public java.lang.Object getParentObject()
getParentObject
in interface IObjectCollection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |