/*
 * used by a list view to show claims 
 * only one claim list will be in use 
 * thus have a static claim list 
 */

package ca.ualberta.cs.volivare;

import java.io.Serializable;
import java.util.ArrayList;

public class ClaimList implements Serializable{
	/**
	 * id name 
	 */
	private static final long serialVersionUID = 5603523228799327439L;
	//only one claim list will be in app 
	private static ArrayList<Claim> claimList = null;
	
	static public ArrayList<Claim> getClaimList() {
		if (claimList == null){
			claimList = new ArrayList<Claim>();
		}
		return claimList;
	}
	
	public void addClaim(Claim claim) {
		getClaimList().add(claim);
	}
	
	//current claim user is place info into 
	public Claim getLastClaim() {
		return claimList.get(claimList.size()-1);
	}

	public static void setList(ArrayList<Claim> list) {
		claimList = list;
	}
	
	//need to add a remove claim method
}

@@ -1,10 +1,558 @@
 /*
+Copyright 2015 victor olivares%0ALicensed under the Apache License, Version 2.0 (the %22License%22);%0Ayou may not use this file except in compliance with the License.%0AYou may obtain a copy of the License at%0Ahttp://www.apache.org/licenses/LICENSE-2.0%0AUnless required by applicable law or agreed to in writing, software%0Adistributed under the License is distributed on an %22AS IS%22 BASIS,%0AWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0ASee the License for the specific language governing permissions and%0Alimitations under the License.
 %0A * used

Update ClaimList.java