org.apache.commons.lang.builder.ToStringBuilder.getObject()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(4.3k)|赞(0)|评价(0)|浏览(79)

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

ToStringBuilder.getObject介绍

[英]Returns the Object being output.
[中]返回正在输出的Object

代码示例

代码示例来源:origin: commons-lang/commons-lang

/**
 * <p>Returns the built <code>toString</code>.</p>
 * 
 * <p>This method appends the end of data indicator, and can only be called once.
 * Use {@link #getStringBuffer} to get the current string state.</p>
 * 
 * <p>If the object is <code>null</code>, return the style's <code>nullText</code></p>
 * 
 * @return the String <code>toString</code>
 */
public String toString() {
  if (this.getObject() == null) {
    this.getStringBuffer().append(this.getStyle().getNullText());
  } else {
    style.appendEnd(this.getStringBuffer(), this.getObject());
  }
  return this.getStringBuffer().toString();
}

代码示例来源:origin: org.apache.directory.api/api-ldap-client-all

/**
 * <p>Returns the built <code>toString</code>.</p>
 * 
 * <p>This method appends the end of data indicator, and can only be called once.
 * Use {@link #getStringBuffer} to get the current string state.</p>
 * 
 * <p>If the object is <code>null</code>, return the style's <code>nullText</code></p>
 * 
 * @return the String <code>toString</code>
 */
public String toString() {
  if (this.getObject() == null) {
    this.getStringBuffer().append(this.getStyle().getNullText());
  } else {
    style.appendEnd(this.getStringBuffer(), this.getObject());
  }
  return this.getStringBuffer().toString();
}

代码示例来源:origin: com.alibaba.citrus.tool/antx-autoexpand

/**
 * <p>Returns the built <code>toString</code>.</p>
 * 
 * <p>This method appends the end of data indicator, and can only be called once.
 * Use {@link #getStringBuffer} to get the current string state.</p>
 * 
 * <p>If the object is <code>null</code>, return the style's <code>nullText</code></p>
 * 
 * @return the String <code>toString</code>
 */
public String toString() {
  if (this.getObject() == null) {
    this.getStringBuffer().append(this.getStyle().getNullText());
  } else {
    style.appendEnd(this.getStringBuffer(), this.getObject());
  }
  return this.getStringBuffer().toString();
}

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

/**
 * <p>Returns the built <code>toString</code>.</p>
 * 
 * <p>This method appends the end of data indicator, and can only be called once.
 * Use {@link #getStringBuffer} to get the current string state.</p>
 * 
 * <p>If the object is <code>null</code>, return the style's <code>nullText</code></p>
 * 
 * @return the String <code>toString</code>
 */
public String toString() {
  if (this.getObject() == null) {
    this.getStringBuffer().append(this.getStyle().getNullText());
  } else {
    style.appendEnd(this.getStringBuffer(), this.getObject());
  }
  return this.getStringBuffer().toString();
}

代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.lang

/**
 * <p>Returns the built <code>toString</code>.</p>
 * 
 * <p>This method appends the end of data indicator, and can only be called once.
 * Use {@link #getStringBuffer} to get the current string state.</p>
 * 
 * <p>If the object is <code>null</code>, return the style's <code>nullText</code></p>
 * 
 * @return the String <code>toString</code>
 */
public String toString() {
  if (this.getObject() == null) {
    this.getStringBuffer().append(this.getStyle().getNullText());
  } else {
    style.appendEnd(this.getStringBuffer(), this.getObject());
  }
  return this.getStringBuffer().toString();
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.apache.commons.lang

/**
 * <p>Returns the built <code>toString</code>.</p>
 * 
 * <p>This method appends the end of data indicator, and can only be called once.
 * Use {@link #getStringBuffer} to get the current string state.</p>
 * 
 * <p>If the object is <code>null</code>, return the style's <code>nullText</code></p>
 * 
 * @return the String <code>toString</code>
 */
public String toString() {
  if (this.getObject() == null) {
    this.getStringBuffer().append(this.getStyle().getNullText());
  } else {
    style.appendEnd(this.getStringBuffer(), this.getObject());
  }
  return this.getStringBuffer().toString();
}

相关文章