Back to project page RaceTimer.
The source code is released under:
GNU General Public License
If you think the Android project RaceTimer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.liamfruzyna.android.racetimer.objects; /* w w w . j a va 2 s.c om*/ import java.util.ArrayList; import java.util.List; /** * Created by mail929 on 9/13/14. */ public class Runner { public int id; public String name; public List<Integer> teams = new ArrayList<Integer>(); public List<Time> times = new ArrayList<Time>(); public Runner(int id, String name) { this.id = id; this.name = name; } public Runner(int id, String name, List<Integer> teams) { this.id = id; this.name = name; this.teams = teams; } public Runner(int id, String name, List<Integer> teams, List<Time> times) { this.id = id; this.name = name; this.teams = teams; this.times = times; } public Time getTime(int meetId, int eventId) { for(int i = 0; i < times.size(); i++) { if(meetId == times.get(i).meetId && eventId == times.get(i).eventId) { return times.get(i); } } return null; } }