Code example for TreeSet

Methods: first, size

0
    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() { 
    return minTimeStamp;
  } 
 
  @Override 
  public ReturnCode filterKeyValue(KeyValue v) {
    if (this.timestamps.contains(v.getTimestamp())) {