Example usage for org.apache.commons.lang3.builder StandardToStringStyle setUseIdentityHashCode

List of usage examples for org.apache.commons.lang3.builder StandardToStringStyle setUseIdentityHashCode

Introduction

In this page you can find the example usage for org.apache.commons.lang3.builder StandardToStringStyle setUseIdentityHashCode.

Prototype

@Override
public void setUseIdentityHashCode(final boolean useIdentityHashCode) 

Source Link

Document

Sets whether to use the identity hash code.

Usage

From source file:com.nmote.smpp.samples.Samples.java

/**
 * Configurates debuging styles.//from   ww  w  .  j  a  v a2s  .  c  om
 */
public static void init() {
    StandardToStringStyle tss = new StandardToStringStyle();
    tss.setUseShortClassName(true);
    tss.setContentStart("(");
    tss.setContentEnd(")");
    tss.setUseIdentityHashCode(false);
    ToStringBuilder.setDefaultStyle(tss);
}

From source file:com.uimirror.auth.form.LoginForm.java

@Override
public String toString() {
    StandardToStringStyle style = new StandardToStringStyle();
    style.setFieldSeparator(", ");
    style.setUseClassName(false);/* ww w .  j  a v a  2s  .  c  o m*/
    style.setUseIdentityHashCode(false);
    return new ReflectionToStringBuilder(this, style).toString();
}