EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.jpa.jpql.util.iterator
Class NullListMutator

java.lang.Object
  extended by org.eclipse.persistence.jpa.jpql.util.iterator.NullListMutator
All Implemented Interfaces:
ListMutator<java.lang.Object>

public final class NullListMutator
extends java.lang.Object
implements ListMutator<java.lang.Object>

A null instance of a ListMutator.

Version:
2.4
Since:
2.4

Method Summary
 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()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

instance

public static <T> ListMutator<T> instance()
Returns the singleton instance of this NullListMutator.

Returns:
The singleton instance of this NullListMutator

add

public void add(int index,
                java.lang.Object item)
Adds the specified object to the original list.

Specified by:
add in interface ListMutator<java.lang.Object>
Parameters:
index - The index of insertion
item - The element to insert into the list

remove

public void remove(int index)
Removes the specified object from the original list.

Specified by:
remove in interface ListMutator<java.lang.Object>
Parameters:
index - The index of the element to remove

set

public void set(int index,
                java.lang.Object item)
Sets the specified object in the original list.

Specified by:
set in interface ListMutator<java.lang.Object>
Parameters:
index - The index of replacement
item - The element to replace the existing one

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference