org.joda.convert.ToString.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(5.5k)|赞(0)|评价(0)|浏览(124)

本文整理了Java中org.joda.convert.ToString.<init>()方法的一些代码示例,展示了ToString.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ToString.<init>()方法的具体详情如下:
包路径:org.joda.convert.ToString
类名称:ToString
方法名:<init>

ToString.<init>介绍

暂无

代码示例

代码示例来源:origin: prestodb/presto

/**
 * Gets the ID of this datetime zone.
 * 
 * @return the ID of this datetime zone
 */
@ToString
public final String getID() {
  return iID;
}

代码示例来源:origin: prestodb/presto

/**
 * Gets this instance as a String in the ISO8601 duration format.
 * <p>
 * For example, "PT4H" represents 4 hours.
 *
 * @return the value as an ISO8601 string
 */
@ToString
public String toString() {
  return "PT" + String.valueOf(getValue()) + "H";
}

代码示例来源:origin: prestodb/presto

/**
 * Gets this instance as a String in the ISO8601 duration format.
 * <p>
 * For example, "PT4M" represents 4 minutes.
 *
 * @return the value as an ISO8601 string
 */
@ToString
public String toString() {
  return "PT" + String.valueOf(getValue()) + "M";
}

代码示例来源:origin: prestodb/presto

/**
 * Gets this instance as a String in the ISO8601 duration format.
 * <p>
 * For example, "PT4S" represents 4 seconds.
 *
 * @return the value as an ISO8601 string
 */
@ToString
public String toString() {
  return "PT" + String.valueOf(getValue()) + "S";
}

代码示例来源:origin: prestodb/presto

/**
 * Gets this instance as a String in the ISO8601 duration format.
 * <p>
 * For example, "P4M" represents 4 months.
 *
 * @return the value as an ISO8601 string
 */
@ToString
public String toString() {
  return "P" + String.valueOf(getValue()) + "M";
}

代码示例来源:origin: prestodb/presto

/**
 * Gets this instance as a String in the ISO8601 duration format.
 * <p>
 * For example, "P4D" represents 4 days.
 *
 * @return the value as an ISO8601 string
 */
@ToString
public String toString() {
  return "P" + String.valueOf(getValue()) + "D";
}

代码示例来源:origin: prestodb/presto

/**
 * Gets this instance as a String in the ISO8601 duration format.
 * <p>
 * For example, "P4W" represents 4 weeks.
 *
 * @return the value as an ISO8601 string
 */
@ToString
public String toString() {
  return "P" + String.valueOf(getValue()) + "W";
}

代码示例来源:origin: prestodb/presto

/**
 * Gets this instance as a String in the ISO8601 duration format.
 * <p>
 * For example, "P4Y" represents 4 years.
 *
 * @return the value as an ISO8601 string
 */
@ToString
public String toString() {
  return "P" + String.valueOf(getValue()) + "Y";
}

代码示例来源:origin: prestodb/presto

/**
 * Output the date time in ISO8601 format (yyyy-MM-ddTHH:mm:ss.SSSZZ).
 * <p>
 * Note that this method does not output the chronology or time-zone.
 * This can be confusing, as the equals and hashCode methods use both
 * chronology and time-zone. If two objects are not {@code equal} but have the
 * same {@code toString} then either the chronology or time-zone differs.
 * 
 * @return ISO8601 time formatted string, not null
 */
@ToString
public String toString() {
  return super.toString();
}

代码示例来源:origin: joda-time/joda-time

/**
 * Output the date time in ISO8601 format (yyyy-MM-dd).
 *
 * @return ISO8601 time formatted string.
 */
@ToString
public String toString() {
  return ISODateTimeFormat.date().print(this);
}

代码示例来源:origin: joda-time/joda-time

/**
 * Output the time in ISO8601 format (HH:mm:ss.SSS).
 * 
 * @return ISO8601 time formatted string.
 */
@ToString
public String toString() {
  return ISODateTimeFormat.time().print(this);
}

代码示例来源:origin: joda-time/joda-time

/**
 * Gets this instance as a String in the ISO8601 duration format.
 * <p>
 * For example, "P4W" represents 4 weeks.
 *
 * @return the value as an ISO8601 string
 */
@ToString
public String toString() {
  return "P" + String.valueOf(getValue()) + "W";
}

代码示例来源:origin: joda-time/joda-time

/**
 * Gets this instance as a String in the ISO8601 duration format.
 * <p>
 * For example, "P4Y" represents 4 years.
 *
 * @return the value as an ISO8601 string
 */
@ToString
public String toString() {
  return "P" + String.valueOf(getValue()) + "Y";
}

代码示例来源:origin: prestodb/presto

/**
 * Output the year-month in ISO8601 format (yyyy-MM).
 *
 * @return ISO8601 time formatted string.
 */
@ToString
public String toString() {
  return ISODateTimeFormat.yearMonth().print(this);
}

代码示例来源:origin: prestodb/presto

/**
 * Output the date time in ISO8601 format (yyyy-MM-dd).
 *
 * @return ISO8601 time formatted string.
 */
@ToString
public String toString() {
  return ISODateTimeFormat.date().print(this);
}

代码示例来源:origin: prestodb/presto

/**
 * Output the date time in ISO8601 format (yyyy-MM-ddTHH:mm:ss.SSS).
 * 
 * @return ISO8601 time formatted string.
 */
@ToString
public String toString() {
  return ISODateTimeFormat.dateTime().print(this);
}

代码示例来源:origin: prestodb/presto

/**
 * Output the time in ISO8601 format (HH:mm:ss.SSS).
 * 
 * @return ISO8601 time formatted string.
 */
@ToString
public String toString() {
  return ISODateTimeFormat.time().print(this);
}

代码示例来源:origin: prestodb/presto

/**
 * Output the date time in ISO8601 format (yyyy-MM-ddTHH:mm:ss.SSSZZ).
 * 
 * @return ISO8601 time formatted string, not null
 */
@ToString
public String toString() {
  return ISODateTimeFormat.dateTime().print(this);
}

代码示例来源:origin: prestodb/presto

/**
 * Output the month-day in ISO8601 format (--MM-dd).
 *
 * @return ISO8601 time formatted string.
 */
@ToString
public String toString() {
  List<DateTimeFieldType> fields = new ArrayList<DateTimeFieldType>();
  fields.add(DateTimeFieldType.monthOfYear());
  fields.add(DateTimeFieldType.dayOfMonth());
  return ISODateTimeFormat.forFields(fields, true, true).print(this);
}

代码示例来源:origin: prestodb/presto

/**
 * Gets the value as a String in the ISO8601 duration format.
 * <p>
 * For example, "PT6H3M7S" represents 6 hours, 3 minutes, 7 seconds.
 * <p>
 * For more control over the output, see
 * {@link com.facebook.presto.jdbc.internal.joda.time.format.PeriodFormatterBuilder PeriodFormatterBuilder}.
 *
 * @return the value as an ISO8601 string
 */
@ToString
public String toString() {
  return ISOPeriodFormat.standard().print(this);
}

相关文章

ToString类方法