|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection java.util.AbstractList com.vinculumtech.carrierwave.image.util.ImageArrayList
Field Summary |
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
ImageArrayList(Image parent)
|
|
ImageArrayList(Image parent,
java.util.List iconList)
|
|
ImageArrayList(Image parent,
java.lang.String edge)
|
|
ImageArrayList(Image parent,
java.lang.String edge,
java.util.List iconList)
|
Method Summary | |
void |
add(int index,
java.lang.Object element)
Inserts the specified element at the specified position in this list. |
boolean |
add(java.lang.Object object)
Appends the specified element to the end of this list. |
boolean |
addAll(java.util.Collection c)
Appends all of the elements in the specified Collection to the end of this list, in the order that they are returned by the specified Collection's Iterator. |
boolean |
addAll(int index,
java.util.Collection c)
Inserts all of the elements in the specified Collection into this list, starting at the specified position. |
void |
clear()
Removes all of the elements from this list. |
boolean |
contains(java.lang.Object elem)
Returns true if this list contains the specified element. |
boolean |
containsAll(java.util.Collection c)
Returns true if this collection contains all of the elements in the specified collection. |
java.lang.Object |
get(int index)
Returns the element at the specified position in this list. |
java.lang.String |
getEdge()
|
Icon |
getIcon(int index)
|
java.util.List |
getIconList()
|
java.lang.Object |
getIcons()
|
protected ImageGraph |
getImageGraph()
|
java.util.Collection |
getImages()
|
java.util.Iterator |
imageIterator()
Returns an Iterator over the owned Image instances. |
int |
indexOf(java.lang.Object elem)
Searches for the first occurence of the given argument, testing for equality using the equals method. |
java.lang.Object |
remove(int index)
Removes the element at the specified position in this list. |
boolean |
removeAll(java.util.Collection c)
Removes from this collection all of its elements that are contained in the specified collection (optional operation). |
boolean |
retainAll(java.util.Collection c)
Retains only the elements in this collection that are contained in the specified collection (optional operation). |
java.lang.Object |
set(int index,
java.lang.Object element)
Replaces the element at the specified position in this list with the specified element. |
int |
size()
Returns the number of elements in this collection. |
Methods inherited from class java.util.AbstractList |
equals, hashCode, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList |
Methods inherited from class java.util.AbstractCollection |
isEmpty, remove, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
isEmpty, remove, toArray, toArray |
Constructor Detail |
public ImageArrayList(Image parent, java.util.List iconList)
public ImageArrayList(Image parent, java.lang.String edge)
public ImageArrayList(Image parent, java.lang.String edge, java.util.List iconList)
public ImageArrayList(Image parent)
Method Detail |
public java.util.Iterator imageIterator()
protected ImageGraph getImageGraph()
public java.lang.String getEdge()
getEdge
in interface ImageContainer
public java.util.Collection getImages()
public java.util.List getIconList()
public java.lang.Object getIcons()
getIcons
in interface ImageContainer
public boolean contains(java.lang.Object elem)
contains
in interface java.util.List
elem
- element whose presence in this List is to be tested.public int indexOf(java.lang.Object elem)
indexOf
in interface java.util.List
elem
- an object.
Object.equals(Object)
public java.lang.Object get(int index)
get
in interface java.util.List
index
- index of element to return.
java.lang.IndexOutOfBoundsException
- if index is out of range (index
< 0 || index >= size()).public Icon getIcon(int index)
public java.lang.Object set(int index, java.lang.Object element)
set
in interface java.util.List
index
- index of element to replace.element
- element to be stored at the specified position.
java.lang.IndexOutOfBoundsException
- if index out of range
(index < 0 || index >= size()).public java.lang.Object remove(int index)
remove
in interface java.util.List
index
- the index of the element to removed.
java.lang.IndexOutOfBoundsException
- if index out of range (index
< 0 || index >= size()).public void clear()
clear
in interface java.util.List
public boolean add(java.lang.Object object)
add
in interface java.util.List
object
- element to be appended to this list.
public void add(int index, java.lang.Object element)
add
in interface java.util.List
index
- index at which the specified element is to be inserted.element
- element to be inserted.
java.lang.IndexOutOfBoundsException
- if index is out of range
(index < 0 || index > size()).public boolean addAll(java.util.Collection c)
addAll
in interface java.util.List
c
- the elements to be inserted into this list.
java.lang.IndexOutOfBoundsException
- if index out of range (index
< 0 || index > size()).public boolean addAll(int index, java.util.Collection c)
addAll
in interface java.util.List
index
- index at which to insert first element
from the specified collection.c
- elements to be inserted into this list.
java.lang.IndexOutOfBoundsException
- if index out of range (index
< 0 || index > size()).public boolean removeAll(java.util.Collection c)
This implementation iterates over this collection, checking each element returned by the iterator in turn to see if it's contained in the specified collection. If it's so contained, it's removed from this collection with the iterator's remove method.
Note that this implementation will throw an UnsupportedOperationException if the iterator returned by the iterator method does not implement the remove method.
removeAll
in interface java.util.List
c
- elements to be removed from this collection.
java.lang.UnsupportedOperationException
- removeAll is not supported
by this collection.AbstractCollection.remove(Object)
,
contains(Object)
public boolean retainAll(java.util.Collection c)
This implementation iterates over this collection, checking each element returned by the iterator in turn to see if it's contained in the specified collection. If it's not so contained, it's removed from this collection with the iterator's remove method.
Note that this implementation will throw an UnsupportedOperationException if the iterator returned by the iterator method does not implement the remove method.
retainAll
in interface java.util.List
c
- elements to be retained in this collection.
java.lang.UnsupportedOperationException
- if the retainAll method
is not supported by this collection.AbstractCollection.remove(Object)
,
contains(Object)
public boolean containsAll(java.util.Collection c)
This implementation iterates over the specified collection, checking each element returned by the iterator in turn to see if it's contained in this collection. If all elements are so contained true is returned, otherwise false.
containsAll
in interface java.util.List
c
- collection to be checked for containment in this collection.
contains(Object)
public int size()
size
in interface java.util.List
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |