org.apache.commons.pool2

## Class BaseObject

- java.lang.Object
- - org.apache.commons.pool2.BaseObject

- Direct Known Subclasses:
    BaseGenericObjectPool, BaseKeyedPooledObjectFactory, BaseObjectPool, BaseObjectPoolConfig, BasePooledObjectFactory

      public abstract class BaseObject
      extends Object

  A base class for common functionality.
  Since:
    2.4.3

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BaseObject()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `toString()`
    `protected void` | `toStringAppendFields(StringBuilder builder)` Used by sub-classes to include the fields defined by the sub-class in the `toString()` output.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### BaseObject

          public BaseObject()

  - ### Method Detail

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### toStringAppendFields

          protected void toStringAppendFields(StringBuilder builder)

      Used by sub-classes to include the fields defined by the sub-class in the `toString()` output.
      Parameters:
        `builder` - Field names and values are appended to this object

Copyright © 2001–2018 The Apache Software Foundation. All rights reserved.