Java Code Examples for org.apache.commons.lang3.ObjectUtils#identityToString()

The following examples show how to use org.apache.commons.lang3.ObjectUtils#identityToString() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ParserTest.java    From WarpPI with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
	return "ReferenceEqualityToken{" + ObjectUtils.identityToString(token) + '}';
}
 
Example 2
Source File: Lang_34_ToStringStyle_s.java    From coming with MIT License 2 votes vote down vote up
/**
 * <p>Append to the <code>toString</code> an <code>Object</code>
 * value that has been detected to participate in a cycle. This
 * implementation will print the standard string value of the value.</p>
 *
 * @param buffer  the <code>StringBuffer</code> to populate
 * @param fieldName  the field name, typically not used as already appended
 * @param value  the value to add to the <code>toString</code>,
 *  not <code>null</code>
 *
 * @since 2.2
 */
protected void appendCyclicObject(StringBuffer buffer, String fieldName, Object value) {
   ObjectUtils.identityToString(buffer, value);
}
 
Example 3
Source File: Lang_34_ToStringStyle_t.java    From coming with MIT License 2 votes vote down vote up
/**
 * <p>Append to the <code>toString</code> an <code>Object</code>
 * value that has been detected to participate in a cycle. This
 * implementation will print the standard string value of the value.</p>
 *
 * @param buffer  the <code>StringBuffer</code> to populate
 * @param fieldName  the field name, typically not used as already appended
 * @param value  the value to add to the <code>toString</code>,
 *  not <code>null</code>
 *
 * @since 2.2
 */
protected void appendCyclicObject(StringBuffer buffer, String fieldName, Object value) {
   ObjectUtils.identityToString(buffer, value);
}
 
Example 4
Source File: ToStringBuilder.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * <p>Appends with the same format as the default <code>Object toString()
 * </code> method. Appends the class name followed by 
 * {@link System#identityHashCode(java.lang.Object)}.</p>
 * 
 * @param object  the <code>Object</code> whose class name and id to output
 * @return this
 * @since 2.0
 */
public ToStringBuilder appendAsObjectToString(Object object) {
    ObjectUtils.identityToString(this.getStringBuffer(), object);
    return this;
}
 
Example 5
Source File: ToStringStyle.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * <p>Append to the <code>toString</code> an <code>Object</code>
 * value that has been detected to participate in a cycle. This
 * implementation will print the standard string value of the value.</p>
 *
 * @param buffer  the <code>StringBuffer</code> to populate
 * @param fieldName  the field name, typically not used as already appended
 * @param value  the value to add to the <code>toString</code>,
 *  not <code>null</code>
 *
 * @since 2.2
 */
protected void appendCyclicObject(StringBuffer buffer, String fieldName, Object value) {
   ObjectUtils.identityToString(buffer, value);
}
 
Example 6
Source File: ToStringBuilder.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * <p>Appends with the same format as the default <code>Object toString()
 * </code> method. Appends the class name followed by
 * {@link System#identityHashCode(java.lang.Object)}.</p>
 *
 * @param object  the <code>Object</code> whose class name and id to output
 * @return this
 * @since 2.0
 */
public ToStringBuilder appendAsObjectToString(Object object) {
    ObjectUtils.identityToString(this.getStringBuffer(), object);
    return this;
}
 
Example 7
Source File: ToStringStyle.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * <p>Append to the <code>toString</code> an <code>Object</code>
 * value that has been detected to participate in a cycle. This
 * implementation will print the standard string value of the value.</p>
 *
 * @param buffer  the <code>StringBuffer</code> to populate
 * @param fieldName  the field name, typically not used as already appended
 * @param value  the value to add to the <code>toString</code>,
 *  not <code>null</code>
 *
 * @since 2.2
 */
protected void appendCyclicObject(StringBuffer buffer, String fieldName, Object value) {
   ObjectUtils.identityToString(buffer, value);
}
 
Example 8
Source File: ToStringBuilder.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * <p>Appends with the same format as the default <code>Object toString()
 * </code> method. Appends the class name followed by 
 * {@link System#identityHashCode(java.lang.Object)}.</p>
 * 
 * @param object  the <code>Object</code> whose class name and id to output
 * @return this
 * @since 2.0
 */
public ToStringBuilder appendAsObjectToString(Object object) {
    ObjectUtils.identityToString(this.getStringBuffer(), object);
    return this;
}
 
Example 9
Source File: ToStringStyle.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * <p>Append to the <code>toString</code> an <code>Object</code>
 * value that has been detected to participate in a cycle. This
 * implementation will print the standard string value of the value.</p>
 * 
 * @param buffer  the <code>StringBuffer</code> to populate
 * @param fieldName  the field name, typically not used as already appended
 * @param value  the value to add to the <code>toString</code>,
 *  not <code>null</code>
 *  
 * @since 2.2
 */
protected void appendCyclicObject(StringBuffer buffer, String fieldName, Object value) {
   ObjectUtils.identityToString(buffer, value);
}
 
Example 10
Source File: ToStringBuilder.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * <p>Appends with the same format as the default <code>Object toString()
 * </code> method. Appends the class name followed by
 * {@link System#identityHashCode(java.lang.Object)}.</p>
 *
 * @param object  the <code>Object</code> whose class name and id to output
 * @return this
 * @since 2.0
 */
public ToStringBuilder appendAsObjectToString(final Object object) {
    ObjectUtils.identityToString(this.getStringBuffer(), object);
    return this;
}
 
Example 11
Source File: ToStringStyle.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * <p>Append to the <code>toString</code> an <code>Object</code>
 * value that has been detected to participate in a cycle. This
 * implementation will print the standard string value of the value.</p>
 *
 * @param buffer  the <code>StringBuffer</code> to populate
 * @param fieldName  the field name, typically not used as already appended
 * @param value  the value to add to the <code>toString</code>,
 *  not <code>null</code>
 *
 * @since 2.2
 */
protected void appendCyclicObject(final StringBuffer buffer, final String fieldName, final Object value) {
   ObjectUtils.identityToString(buffer, value);
}
 
Example 12
Source File: ToStringBuilder.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * <p>Appends with the same format as the default <code>Object toString()
 * </code> method. Appends the class name followed by
 * {@link System#identityHashCode(java.lang.Object)}.</p>
 *
 * @param object  the <code>Object</code> whose class name and id to output
 * @return this
 * @since 2.0
 */
public ToStringBuilder appendAsObjectToString(Object object) {
    ObjectUtils.identityToString(this.getStringBuffer(), object);
    return this;
}
 
Example 13
Source File: ToStringStyle.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * <p>Append to the <code>toString</code> an <code>Object</code>
 * value that has been detected to participate in a cycle. This
 * implementation will print the standard string value of the value.</p>
 *
 * @param buffer  the <code>StringBuffer</code> to populate
 * @param fieldName  the field name, typically not used as already appended
 * @param value  the value to add to the <code>toString</code>,
 *  not <code>null</code>
 *
 * @since 2.2
 */
protected void appendCyclicObject(StringBuffer buffer, String fieldName, Object value) {
   ObjectUtils.identityToString(buffer, value);
}