com.jpattern.orm.persistor.type.ext
Class WrapperTypeList

java.lang.Object
  extended by com.jpattern.orm.persistor.type.ext.WrapperTypeList
All Implemented Interfaces:
Iterable<Object>, Collection<Object>, List<Object>

public class WrapperTypeList
extends Object
implements List<Object>

A list that store values of a query. If the type of the object to store has a WrapperType associated the unwrapped value is stored in the list.

Author:
Francesco Cina' Apr 16, 2012

Constructor Summary
WrapperTypeList(TypeFactory typeFactory)
           
 
Method Summary
 void add(int index, Object element)
           
 boolean add(Object e)
           
 boolean addAll(Collection<? extends Object> c)
           
 boolean addAll(int index, Collection<? extends Object> c)
           
 void clear()
           
 boolean contains(Object o)
           
 boolean containsAll(Collection<?> c)
           
 boolean equals(Object o)
           
 Object get(int index)
           
 int hashCode()
           
 int indexOf(Object o)
           
 boolean isEmpty()
           
 Iterator<Object> iterator()
           
 int lastIndexOf(Object o)
           
 ListIterator<Object> listIterator()
           
 ListIterator<Object> listIterator(int index)
           
 Object remove(int index)
           
 boolean remove(Object o)
           
 boolean removeAll(Collection<?> c)
           
 boolean retainAll(Collection<?> c)
           
 Object set(int index, Object element)
           
 int size()
           
 List<Object> subList(int fromIndex, int toIndex)
           
 Object[] toArray()
           
<T> T[]
toArray(T[] a)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WrapperTypeList

public WrapperTypeList(TypeFactory typeFactory)
Method Detail

add

public boolean add(Object e)
Specified by:
add in interface Collection<Object>
Specified by:
add in interface List<Object>
Parameters:
e -
Returns:
See Also:
List.add(java.lang.Object)

add

public void add(int index,
                Object element)
Specified by:
add in interface List<Object>
Parameters:
index -
element -
See Also:
List.add(int, java.lang.Object)

addAll

public boolean addAll(Collection<? extends Object> c)
Specified by:
addAll in interface Collection<Object>
Specified by:
addAll in interface List<Object>
Parameters:
c -
Returns:
See Also:
List.addAll(java.util.Collection)

addAll

public boolean addAll(int index,
                      Collection<? extends Object> c)
Specified by:
addAll in interface List<Object>
Parameters:
index -
c -
Returns:
See Also:
List.addAll(int, java.util.Collection)

clear

public void clear()
Specified by:
clear in interface Collection<Object>
Specified by:
clear in interface List<Object>
See Also:
List.clear()

contains

public boolean contains(Object o)
Specified by:
contains in interface Collection<Object>
Specified by:
contains in interface List<Object>
Parameters:
o -
Returns:
See Also:
List.contains(java.lang.Object)

containsAll

public boolean containsAll(Collection<?> c)
Specified by:
containsAll in interface Collection<Object>
Specified by:
containsAll in interface List<Object>
Parameters:
c -
Returns:
See Also:
List.containsAll(java.util.Collection)

equals

public boolean equals(Object o)
Specified by:
equals in interface Collection<Object>
Specified by:
equals in interface List<Object>
Overrides:
equals in class Object
Parameters:
o -
Returns:
See Also:
List.equals(java.lang.Object)

get

public Object get(int index)
Specified by:
get in interface List<Object>
Parameters:
index -
Returns:
See Also:
List.get(int)

hashCode

public int hashCode()
Specified by:
hashCode in interface Collection<Object>
Specified by:
hashCode in interface List<Object>
Overrides:
hashCode in class Object
Returns:
See Also:
List.hashCode()

indexOf

public int indexOf(Object o)
Specified by:
indexOf in interface List<Object>
Parameters:
o -
Returns:
See Also:
List.indexOf(java.lang.Object)

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<Object>
Specified by:
isEmpty in interface List<Object>
Returns:
See Also:
List.isEmpty()

iterator

public Iterator<Object> iterator()
Specified by:
iterator in interface Iterable<Object>
Specified by:
iterator in interface Collection<Object>
Specified by:
iterator in interface List<Object>
Returns:
See Also:
List.iterator()

lastIndexOf

public int lastIndexOf(Object o)
Specified by:
lastIndexOf in interface List<Object>
Parameters:
o -
Returns:
See Also:
List.lastIndexOf(java.lang.Object)

listIterator

public ListIterator<Object> listIterator()
Specified by:
listIterator in interface List<Object>
Returns:
See Also:
List.listIterator()

listIterator

public ListIterator<Object> listIterator(int index)
Specified by:
listIterator in interface List<Object>
Parameters:
index -
Returns:
See Also:
List.listIterator(int)

remove

public Object remove(int index)
Specified by:
remove in interface List<Object>
Parameters:
index -
Returns:
See Also:
List.remove(int)

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection<Object>
Specified by:
remove in interface List<Object>
Parameters:
o -
Returns:
See Also:
List.remove(java.lang.Object)

removeAll

public boolean removeAll(Collection<?> c)
Specified by:
removeAll in interface Collection<Object>
Specified by:
removeAll in interface List<Object>
Parameters:
c -
Returns:
See Also:
List.removeAll(java.util.Collection)

retainAll

public boolean retainAll(Collection<?> c)
Specified by:
retainAll in interface Collection<Object>
Specified by:
retainAll in interface List<Object>
Parameters:
c -
Returns:
See Also:
List.retainAll(java.util.Collection)

set

public Object set(int index,
                  Object element)
Specified by:
set in interface List<Object>
Parameters:
index -
element -
Returns:
See Also:
List.set(int, java.lang.Object)

size

public int size()
Specified by:
size in interface Collection<Object>
Specified by:
size in interface List<Object>
Returns:
See Also:
List.size()

subList

public List<Object> subList(int fromIndex,
                            int toIndex)
Specified by:
subList in interface List<Object>
Parameters:
fromIndex -
toIndex -
Returns:
See Also:
List.subList(int, int)

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection<Object>
Specified by:
toArray in interface List<Object>
Returns:
See Also:
List.toArray()

toArray

public <T> T[] toArray(T[] a)
Specified by:
toArray in interface Collection<Object>
Specified by:
toArray in interface List<Object>
Parameters:
a -
Returns:
See Also:
java.util.List#toArray(T[])

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.