org.opennms.netmgt.provision.persist.foreignsource
Class ForeignSourceCollection

java.lang.Object
  extended by org.opennms.netmgt.provision.persist.foreignsource.ForeignSourceCollection
All Implemented Interfaces:
Iterable<ForeignSource>, Collection<ForeignSource>, List<ForeignSource>

public class ForeignSourceCollection
extends Object
implements List<ForeignSource>

ForeignSourceCollection class.

Version:
$Id: $
Author:
ranger

Constructor Summary
ForeignSourceCollection()
          Constructor for ForeignSourceCollection.
ForeignSourceCollection(Collection<? extends ForeignSource> c)
          Constructor for ForeignSourceCollection.
 
Method Summary
 boolean add(ForeignSource config)
           
 void add(int index, ForeignSource config)
           
 boolean addAll(Collection<? extends ForeignSource> configs)
           
 boolean addAll(int index, Collection<? extends ForeignSource> configs)
           
 void clear()
           
 boolean contains(Object object)
           
 boolean containsAll(Collection<?> objects)
           
 ForeignSource get(int index)
           
 Integer getCount()
          getCount
 List<ForeignSource> getForeignSources()
          getForeignSources
 int indexOf(Object object)
           
 boolean isEmpty()
           
 Iterator<ForeignSource> iterator()
           
 int lastIndexOf(Object object)
           
 ListIterator<ForeignSource> listIterator()
           
 ListIterator<ForeignSource> listIterator(int index)
           
 ForeignSource remove(int index)
           
 boolean remove(Object object)
           
 boolean removeAll(Collection<?> objects)
           
 boolean retainAll(Collection<?> objects)
           
 ForeignSource set(int index, ForeignSource config)
           
 void setForeignSources(List<ForeignSource> foreignSources)
          setForeignSources
 int size()
           
 List<ForeignSource> subList(int start, int end)
           
 Object[] toArray()
           
<T> T[]
toArray(T[] type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.List
equals, hashCode
 

Constructor Detail

ForeignSourceCollection

public ForeignSourceCollection()

Constructor for ForeignSourceCollection.


ForeignSourceCollection

public ForeignSourceCollection(Collection<? extends ForeignSource> c)

Constructor for ForeignSourceCollection.

Parameters:
c - a Collection object.
Method Detail

getForeignSources

public List<ForeignSource> getForeignSources()

getForeignSources

Returns:
a List object.

setForeignSources

public void setForeignSources(List<ForeignSource> foreignSources)

setForeignSources

Parameters:
foreignSources - a List object.

getCount

public Integer getCount()

getCount

Returns:
a Integer object.

add

public boolean add(ForeignSource config)
Specified by:
add in interface Collection<ForeignSource>
Specified by:
add in interface List<ForeignSource>

add

public void add(int index,
                ForeignSource config)
Specified by:
add in interface List<ForeignSource>

addAll

public boolean addAll(Collection<? extends ForeignSource> configs)
Specified by:
addAll in interface Collection<ForeignSource>
Specified by:
addAll in interface List<ForeignSource>

addAll

public boolean addAll(int index,
                      Collection<? extends ForeignSource> configs)
Specified by:
addAll in interface List<ForeignSource>

clear

public void clear()
Specified by:
clear in interface Collection<ForeignSource>
Specified by:
clear in interface List<ForeignSource>

contains

public boolean contains(Object object)
Specified by:
contains in interface Collection<ForeignSource>
Specified by:
contains in interface List<ForeignSource>

containsAll

public boolean containsAll(Collection<?> objects)
Specified by:
containsAll in interface Collection<ForeignSource>
Specified by:
containsAll in interface List<ForeignSource>

get

public ForeignSource get(int index)
Specified by:
get in interface List<ForeignSource>

indexOf

public int indexOf(Object object)
Specified by:
indexOf in interface List<ForeignSource>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<ForeignSource>
Specified by:
isEmpty in interface List<ForeignSource>

iterator

public Iterator<ForeignSource> iterator()
Specified by:
iterator in interface Iterable<ForeignSource>
Specified by:
iterator in interface Collection<ForeignSource>
Specified by:
iterator in interface List<ForeignSource>

lastIndexOf

public int lastIndexOf(Object object)
Specified by:
lastIndexOf in interface List<ForeignSource>

listIterator

public ListIterator<ForeignSource> listIterator()
Specified by:
listIterator in interface List<ForeignSource>

listIterator

public ListIterator<ForeignSource> listIterator(int index)
Specified by:
listIterator in interface List<ForeignSource>

remove

public boolean remove(Object object)
Specified by:
remove in interface Collection<ForeignSource>
Specified by:
remove in interface List<ForeignSource>

remove

public ForeignSource remove(int index)
Specified by:
remove in interface List<ForeignSource>

removeAll

public boolean removeAll(Collection<?> objects)
Specified by:
removeAll in interface Collection<ForeignSource>
Specified by:
removeAll in interface List<ForeignSource>

retainAll

public boolean retainAll(Collection<?> objects)
Specified by:
retainAll in interface Collection<ForeignSource>
Specified by:
retainAll in interface List<ForeignSource>

set

public ForeignSource set(int index,
                         ForeignSource config)
Specified by:
set in interface List<ForeignSource>

size

public int size()
Specified by:
size in interface Collection<ForeignSource>
Specified by:
size in interface List<ForeignSource>

subList

public List<ForeignSource> subList(int start,
                                   int end)
Specified by:
subList in interface List<ForeignSource>

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection<ForeignSource>
Specified by:
toArray in interface List<ForeignSource>

toArray

public <T> T[] toArray(T[] type)
Specified by:
toArray in interface Collection<ForeignSource>
Specified by:
toArray in interface List<ForeignSource>


Copyright © 2011. All Rights Reserved.