org.joda.time.Partial.toStringList()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(6.2k)|赞(0)|评价(0)|浏览(173)

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

Partial.toStringList介绍

[英]Gets a string version of the partial that lists all the fields.

This method exists to provide a better debugging toString than the standard toString. This method lists all the fields and their values in a style similar to the collections framework.
[中]获取列出所有字段的分部的字符串版本。
此方法的存在是为了提供比标准toString更好的调试toString。此方法以类似于集合框架的样式列出所有字段及其值。

代码示例

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

/**
 * Output the date in an appropriate ISO8601 format.
 * <p>
 * This method will output the partial in one of two ways.
 * If {@link #getFormatter()}
 * <p>
 * If there is no appropriate ISO format a dump of the fields is output
 * via {@link #toStringList()}.
 * 
 * @return ISO8601 formatted string
 */
public String toString() {
  DateTimeFormatter[] f = iFormatter;
  if (f == null) {
    getFormatter();
    f = iFormatter;
    if (f == null) {
      return toStringList();
    }
  }
  DateTimeFormatter f1 = f[1];
  if (f1 == null) {
    return toStringList();
  }
  return f1.print(this);
}

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

/**
 * Output the date in an appropriate ISO8601 format.
 * <p>
 * This method will output the partial in one of two ways.
 * If {@link #getFormatter()}
 * <p>
 * If there is no appropriate ISO format a dump of the fields is output
 * via {@link #toStringList()}.
 * 
 * @return ISO8601 formatted string
 */
public String toString() {
  DateTimeFormatter[] f = iFormatter;
  if (f == null) {
    getFormatter();
    f = iFormatter;
    if (f == null) {
      return toStringList();
    }
  }
  DateTimeFormatter f1 = f[1];
  if (f1 == null) {
    return toStringList();
  }
  return f1.print(this);
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * Output the date in an appropriate ISO8601 format.
 * <p>
 * This method will output the partial in one of two ways.
 * If {@link #getFormatter()}
 * <p>
 * If there is no appropriate ISO format a dump of the fields is output
 * via {@link #toStringList()}.
 * 
 * @return ISO8601 formatted string
 */
public String toString() {
  DateTimeFormatter[] f = iFormatter;
  if (f == null) {
    getFormatter();
    f = iFormatter;
    if (f == null) {
      return toStringList();
    }
  }
  DateTimeFormatter f1 = f[1];
  if (f1 == null) {
    return toStringList();
  }
  return f1.print(this);
}

代码示例来源:origin: Nextdoor/bender

/**
 * Output the date in an appropriate ISO8601 format.
 * <p>
 * This method will output the partial in one of two ways.
 * If {@link #getFormatter()}
 * <p>
 * If there is no appropriate ISO format a dump of the fields is output
 * via {@link #toStringList()}.
 * 
 * @return ISO8601 formatted string
 */
public String toString() {
  DateTimeFormatter[] f = iFormatter;
  if (f == null) {
    getFormatter();
    f = iFormatter;
    if (f == null) {
      return toStringList();
    }
  }
  DateTimeFormatter f1 = f[1];
  if (f1 == null) {
    return toStringList();
  }
  return f1.print(this);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.joda-time

/**
 * Output the date in an appropriate ISO8601 format.
 * <p>
 * This method will output the partial in one of two ways.
 * If {@link #getFormatter()}
 * <p>
 * If there is no appropriate ISO format a dump of the fields is output
 * via {@link #toStringList()}.
 * 
 * @return ISO8601 formatted string
 */
public String toString() {
  DateTimeFormatter[] f = iFormatter;
  if (f == null) {
    getFormatter();
    f = iFormatter;
    if (f == null) {
      return toStringList();
    }
  }
  DateTimeFormatter f1 = f[1];
  if (f1 == null) {
    return toStringList();
  }
  return f1.print(this);
}

代码示例来源:origin: io.virtdata/virtdata-lib-realer

/**
 * Output the date in an appropriate ISO8601 format.
 * <p>
 * This method will output the partial in one of two ways.
 * If {@link #getFormatter()}
 * <p>
 * If there is no appropriate ISO format a dump of the fields is output
 * via {@link #toStringList()}.
 * 
 * @return ISO8601 formatted string
 */
public String toString() {
  DateTimeFormatter[] f = iFormatter;
  if (f == null) {
    getFormatter();
    f = iFormatter;
    if (f == null) {
      return toStringList();
    }
  }
  DateTimeFormatter f1 = f[1];
  if (f1 == null) {
    return toStringList();
  }
  return f1.print(this);
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

/**
 * Output the date in an appropriate ISO8601 format.
 * <p>
 * This method will output the partial in one of two ways.
 * If {@link #getFormatter()}
 * <p>
 * If there is no appropriate ISO format a dump of the fields is output
 * via {@link #toStringList()}.
 * 
 * @return ISO8601 formatted string
 */
public String toString() {
  DateTimeFormatter[] f = iFormatter;
  if (f == null) {
    getFormatter();
    f = iFormatter;
    if (f == null) {
      return toStringList();
    }
  }
  DateTimeFormatter f1 = f[1];
  if (f1 == null) {
    return toStringList();
  }
  return f1.print(this);
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

/**
 * Output the date in an appropriate ISO8601 format.
 * <p>
 * This method will output the partial in one of two ways.
 * If {@link #getFormatter()}
 * <p>
 * If there is no appropriate ISO format a dump of the fields is output
 * via {@link #toStringList()}.
 * 
 * @return ISO8601 formatted string
 */
public String toString() {
  DateTimeFormatter[] f = iFormatter;
  if (f == null) {
    getFormatter();
    f = iFormatter;
    if (f == null) {
      return toStringList();
    }
  }
  DateTimeFormatter f1 = f[1];
  if (f1 == null) {
    return toStringList();
  }
  return f1.print(this);
}

代码示例来源:origin: org.joda/com.springsource.org.joda.time

/**
 * Output the date in an appropriate ISO8601 format.
 * <p>
 * This method will output the partial in one of two ways.
 * If {@link #getFormatter()}
 * <p>
 * If there is no appropriate ISO format a dump of the fields is output
 * via {@link #toStringList()}.
 * 
 * @return ISO8601 formatted string
 */
public String toString() {
  DateTimeFormatter[] f = iFormatter;
  if (f == null) {
    getFormatter();
    f = iFormatter;
    if (f == null) {
      return toStringList();
    }
  }
  DateTimeFormatter f1 = f[1];
  if (f1 == null) {
    return toStringList();
  }
  return f1.print(this);
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics

/**
 * Output the date in an appropriate ISO8601 format.
 * <p>
 * This method will output the partial in one of two ways.
 * If {@link #getFormatter()}
 * <p>
 * If there is no appropriate ISO format a dump of the fields is output
 * via {@link #toStringList()}.
 * 
 * @return ISO8601 formatted string
 */
public String toString() {
  DateTimeFormatter[] f = iFormatter;
  if (f == null) {
    getFormatter();
    f = iFormatter;
    if (f == null) {
      return toStringList();
    }
  }
  DateTimeFormatter f1 = f[1];
  if (f1 == null) {
    return toStringList();
  }
  return f1.print(this);
}

代码示例来源:origin: redfish64/TinyTravelTracker

/**
 * Output the date in an appropriate ISO8601 format.
 * <p>
 * This method will output the partial in one of two ways.
 * If {@link #getFormatter()}
 * <p>
 * If there is no appropriate ISO format a dump of the fields is output
 * via {@link #toStringList()}.
 * 
 * @return ISO8601 formatted string
 */
public String toString() {
  DateTimeFormatter[] f = iFormatter;
  if (f == null) {
    getFormatter();
    f = iFormatter;
    if (f == null) {
      return toStringList();
    }
  }
  DateTimeFormatter f1 = f[1];
  if (f1 == null) {
    return toStringList();
  }
  return f1.print(this);
}

相关文章