Code example for TreeSet

Methods: firstsize

0
   * list of timestamps. 
   * 
   * @param timestamps 
   */ 
  public TimestampsFilter(List<Long> timestamps) {
    this.timestamps = new TreeSet<Long>(timestamps);
    init(); 
  } 
 
  private void init() { 
    if (this.timestamps.size() > 0) {
      minTimeStamp = this.timestamps.first();
    } 
  } 
 
  /** 
   * Gets the minimum timestamp requested by filter. 
   * @return  minimum timestamp requested by filter. 
   */ 
  public long getMin() {