Code example for Collection

Methods: add

0
	@SuppressWarnings("unchecked") 
	@Override 
	public void _setObject(Object newValue, Collection<Object> initiators) {
		if (newValue instanceof ArrayListObservable && this != newValue) {
			mArray=((ArrayListObservable<T>)newValue).mArray;
			initiators.add(this);
			this.notifyChanged(initiators);
		} 
	} 
 
	public static final Parcelable.Creator<ArrayListObservable<?>> CREATOR =
			new Parcelable.Creator<ArrayListObservable<?>>() { 
				@SuppressWarnings({ "rawtypes", "unchecked" }) 
				public ArrayListObservable<?> createFromParcel(Parcel source) { 
					Object[] arr = source.readArray(this.getClass().getClassLoader()); 
					return new ArrayListObservable(arr.getClass().getComponentType(), arr); 
				} 
 
				public ArrayListObservable<?>[] newArray(int size) { 
					return new ArrayListObservable[size]; 
				}