Maven module :un.api : api-common :
Class : un.api.collection.AbstractCollection
Extends/Implements : un.api.event.AbstractEventSource un.api.collection.Collection
Subclasses : -

Abstract collection, falls back on : createIterator, add(Object), remove(Object)
to implements methods :
author  Johann Sorel


Variables : -
Functions : addAll, addAll, removeAll, removeAll, removeAll, replaceAll, replaceAll, contains, getSize, isEmpty, getEventClasses, toArray, fireAdd, fireRemove, fireReplace, fireReplaceAll, toChars



public boolean addAll (Object[] candidate)

public boolean addAll (Collection candidate)

public boolean removeAll (Collection candidate)

public boolean removeAll (Object[] candidate)

public boolean removeAll ()

public void replaceAll (Collection items)

public void replaceAll (Object[] items)

public boolean contains (Object candidate)

public int getSize ()

public boolean isEmpty ()

public Class[] getEventClasses ()

public Object[] toArray ()


Send a collection add event.
param  startIndex first index of modified element, -1 if unknowed
param  endIndex last index of modified element, -1 if unknowed
param  news values added
protected void fireAdd (int startIndex, int endIndex, Object[] news)


Send a collection remove event.
param  startIndex first index of modified element, -1 if unknowed
param  endIndex last index of modified element, -1 if unknowed
param  olds values removed
protected void fireRemove (int startIndex, int endIndex, Object[] olds)


Send a collection replace event.
param  startIndex first index of modified element, -1 if unknowed
param  endIndex last index of modified element, -1 if unknowed
param  olds values before replacement
param  news values after replacement
protected void fireReplace (int startIndex, int endIndex, Object[] olds, Object[] news)


Send a collection replace all event.
param  startIndex first index of modified element, -1 if unknowed
param  endIndex last index of modified element, -1 if unknowed
param  olds values before replacement
param  news values after replacement
protected void fireReplaceAll (int startIndex, int endIndex, Object[] olds, Object[] news)

public Chars toChars ()