class Tenor implements Comparable<Tenor>, Serializable {

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("Tenor[");
    if (_period == null) {
      sb.append(getBusinessDayTenor().toString());
    } else {
      sb.append(getPeriod().toString());
    }
    sb.append("]");
    return sb.toString();
  }

  @Deprecated public  Tenor(final Period period);
  private  Tenor(final BusinessDayTenor businessDayTenor);

}