public final class NullListMutator extends java.lang.Object implements ListMutator<java.lang.Object>
null instance of a ListMutator.| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
java.lang.Object item)
Adds the specified object to the original list.
|
static <T> ListMutator<T> |
instance()
Returns the singleton instance of this
NullListMutator. |
void |
remove(int index)
Removes the specified object from the original list.
|
void |
set(int index,
java.lang.Object item)
Sets the specified object in the original list.
|
java.lang.String |
toString() |
public static <T> ListMutator<T> instance()
NullListMutator.NullListMutatorpublic void add(int index,
java.lang.Object item)
add in interface ListMutator<java.lang.Object>index - The index of insertionitem - The element to insert into the listpublic void remove(int index)
remove in interface ListMutator<java.lang.Object>index - The index of the element to removepublic void set(int index,
java.lang.Object item)
set in interface ListMutator<java.lang.Object>index - The index of replacementitem - The element to replace the existing onepublic java.lang.String toString()
toString in class java.lang.ObjectEclipseLink 2.4.2, "build v20130514-5956486" API Reference