Java Code Examples for org.apache.commons.lang3.builder.ReflectionToStringBuilder#toStringExclude()

The following examples show how to use org.apache.commons.lang3.builder.ReflectionToStringBuilder#toStringExclude() . 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: HashAggTemplate.java    From Bats with Apache License 2.0 5 votes vote down vote up
@Override
public String toString() {
  // The fields are excluded because they are passed from HashAggBatch
  String[] excludedFields = new String[] {
      "baseHashTable", "incoming", "outgoing", "context", "oContext", "allocator", "htables", "newIncoming"};
  return ReflectionToStringBuilder.toStringExclude(this, excludedFields);
}
 
Example 2
Source File: Message.java    From AvatarMQ with Apache License 2.0 4 votes vote down vote up
public String toString() {
    ReflectionToStringBuilder.setDefaultStyle(ToStringStyle.SHORT_PREFIX_STYLE);
    return ReflectionToStringBuilder.toStringExclude(this, new String[]{"body"});
}