Code example for Delayed

Methods: getDelay

0
    if (this == that) {
      return 0; 
    } 
    return SliderUtils.compareTo( 
        getDelay(TimeUnit.NANOSECONDS),
        that.getDelay(TimeUnit.NANOSECONDS));
  } 
 
  @Override 
  public String toString() {
    final StringBuilder sb =
        new StringBuilder(super.toString());
    sb.append(" name='").append(name).append('\'');
    sb.append(", delay=").append(getDelay(TimeUnit.SECONDS));
    sb.append(", attrs=").append(attrs);
    sb.append(", sequenceNumber=").append(sequenceNumber);
    sb.append('}');
    return sb.toString();
  }