001    package jp.osdl.jbento2.analyzer;
002    
003    import java.util.ArrayList;
004    import java.util.List;
005    import java.util.TreeSet;
006    
007    
008    public class Sample {
009    
010        private String clientId;
011        private String requestType;
012        private boolean isError;
013        private List times = new ArrayList();
014    
015        public String getClientId() {
016            return clientId;
017        }
018        public void setClientId(String clientId) {
019            this.clientId = clientId;
020        }
021    
022        public String getRequestType() {
023            return requestType;
024        }
025        public void setRequestType(String requestType) {
026            this.requestType = requestType;
027        }
028    
029        public boolean isError() {
030            return isError;
031        }
032        public void setError(boolean isError) {
033            this.isError = isError;
034        }
035        
036        public void addTime(Time time) {
037            times.add(time);
038        }
039        public Time[] getTimes() {
040            return (Time[])times.toArray(new Time[times.size()]);
041        }
042        public Time getStartTime() {
043            return (Time)new TreeSet(times).first();
044        }
045        public Time getEndTime() {
046            return (Time)new TreeSet(times).last();
047        }
048    
049    }