Package sc.util
Class BArrayList<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<E>
-
- sc.util.BArrayList<E>
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.List<E>
,java.util.RandomAccess
,IChangeable
public class BArrayList<E> extends java.util.ArrayList<E> implements IChangeable
This acts like a java.util.ArrayList but is usable with data binding and data synchronization. It sends change events as you modify it.Because it is synchronizable as a property and sends change events we disable the auto-sync stuff for it.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BArrayList()
BArrayList(int initialCapacity)
BArrayList(java.util.Collection<? extends E> c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, E element)
boolean
add(E value)
boolean
addAll(int index, java.util.Collection<? extends E> c)
boolean
addAll(java.util.Collection<? extends E> c)
void
clear()
E
remove(int index)
boolean
remove(java.lang.Object o)
boolean
removeAll(java.util.Collection<?> c)
E
ret(int index)
Just like get but returns null if the element is out of rangeboolean
retainAll(java.util.Collection<?> c)
E
set(int index, E element)
-
Methods inherited from class java.util.ArrayList
clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeIf, removeRange, replaceAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
-
-
-
Constructor Detail
-
BArrayList
public BArrayList(int initialCapacity)
-
BArrayList
public BArrayList()
-
BArrayList
public BArrayList(java.util.Collection<? extends E> c)
-
-
Method Detail
-
add
public boolean add(E value)
-
remove
public boolean remove(java.lang.Object o)
-
addAll
public boolean addAll(java.util.Collection<? extends E> c)
-
addAll
public boolean addAll(int index, java.util.Collection<? extends E> c)
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
-
clear
public void clear()
-
add
public void add(int index, E element)
-
remove
public E remove(int index)
-
ret
public E ret(int index)
Just like get but returns null if the element is out of range
-
-