Code example for Parcel

Methods: writeArray, writeInt, writeLong

0
		mMsec = source.readLong();
	} 
	 
	@Override 
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeArray(mPattern);
		dest.writeInt(mRepeat);
		dest.writeLong(mMsec);
	} 
	 
	public Long[] getPattern() {
		return mPattern;
	} 
	 
	public void setPattern(Long[] pattern) {
		mPattern = pattern;
	} 
	 
	public void setRepeat(Integer repeat) {
		mRepeat = repeat;
	}