@Test public void testGet() { SRTInfo srtInfo = new SRTInfo(); Date d = new Date(); SRT srt1 = new SRT(1, d, d, "Foo", "Bar"); srtInfo.add(srt1); SRT srt2 = new SRT(2, d, d, "Hello", "World"); srtInfo.add(srt2); assertEquals(srt1, srtInfo.get(1)); assertEquals(srt1, srtInfo.get(srt1)); }
public SRT get(int number) { return info.tailSet(new SRT(number, null, null, new String[]{})).first(); }
SRTInfo implements Iterable<SRT>, Cloneable { public SRT get(int number) { return info.tailSet(new SRT(number, null, null, new String[]{})).first(); } }
SRTInfo implements Iterable<SRT>, Cloneable { public SRT get(int number) { return info.tailSet(new SRT(number, null, null, new String[]{})).first(); } SRTInfo();  SRTInfo(SRTInfo srtInfo); }
SRTInfo implements Iterable<SRT>, Cloneable { public SRT get(int number) { return info.tailSet(new SRT(number, null, null, new String[]{})).first(); } SRTInfo();  SRTInfo(SRTInfo srtInfo); void add(SRT srt); Iterator<SRT> iterator(); int size(); void remove(SRT srt); void remove(int number); SRT get(int number); SRT get(SRT srt); boolean contains(int number); boolean contains(SRT srt); @Override Object clone(); }
SRTInfo implements Iterable<SRT>, Cloneable { public SRT get(int number) { return info.tailSet(new SRT(number, null, null, new String[]{})).first(); } SRTInfo();  SRTInfo(SRTInfo srtInfo); void add(SRT srt); Iterator<SRT> iterator(); int size(); void remove(SRT srt); void remove(int number); SRT get(int number); SRT get(SRT srt); boolean contains(int number); boolean contains(SRT srt); @Override Object clone();  }