class Tenor implements Comparable<Tenor>, Serializable {

  @ToString
  public String toFormattedString() {
    if (_period != null) {
      return getPeriod().toString();
    } 
    return getBusinessDayTenor().toString();
  }

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

}