| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| pack-priv static interface |
| Modifier and Type | Field and Description |
|---|---|
| private ObjectUtility. | |
| private final Object[][] | |
| private ObjectUtility. | |
| private ObjectUtility. | |
| private static ObjectUtility | |
| private ObjectUtility. | |
| private int | |
| private int | |
| private boolean | |
| private ObjectUtility. | |
| private static ObjectUtility. | |
| private static ObjectUtility | |
| private static ObjectUtility. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| pack-priv ObjectUtility. | |
| public static String | Returns: the String representation of obj.Object to print. object)A convenience method that gives the default behavior: do not use indenting to display the object's structure. |
| public static String | Returns: the String representation of obj.Object to print. object)A convenience method that gives the default behavior: use indenting to display the object's structure and do not use built-in toString methods. |
| private Field[] | |
| private void | |
| private void | |
| public String | |
| private void | |
| public ObjectUtility |
| arrayPrinter | back to summary |
|---|---|
| private ObjectUtility. | |
| CLASS_MAP_DATA | back to summary |
|---|---|
| private final Object[][] CLASS_MAP_DATA | |
| classMap | back to summary |
|---|---|
| private ObjectUtility. | |
| collectionPrinter | back to summary |
|---|---|
| private ObjectUtility. | |
| compact | back to summary |
|---|---|
| private static ObjectUtility compact | |
| generalObjectPrinter | back to summary |
|---|---|
| private ObjectUtility. | |
| increment | back to summary |
|---|---|
| private int increment | |
| initialLevel | back to summary |
|---|---|
| private int initialLevel | |
| isIndenting | back to summary |
|---|---|
| private boolean isIndenting | |
| mapPrinter | back to summary |
|---|---|
| private ObjectUtility. | |
| propertiesPrinter | back to summary |
|---|---|
| private static ObjectUtility. | |
| standard | back to summary |
|---|---|
| private static ObjectUtility standard | |
| toStringPrinter | back to summary |
|---|---|
| private static ObjectUtility. | |
| ObjectUtility | back to summary |
|---|---|
| public ObjectUtility(boolean isIndenting, int initialLevel, int increment) | |
| checkPackageAccess | back to summary |
|---|---|
| private void checkPackageAccess(Class<T> cls) | |
| classify | back to summary |
|---|---|
| pack-priv ObjectUtility. | |
| compactObjectToString | back to summary |
|---|---|
| public static String compactObjectToString(Object object) A convenience method that gives the default behavior: do not use indenting to display the object's structure. | |
| defaultObjectToString | back to summary |
|---|---|
| public static String defaultObjectToString(Object object) A convenience method that gives the default behavior: use indenting to display the object's structure and do not use built-in toString methods. | |
| getDeclaredFields | back to summary |
|---|---|
| private Field[] getDeclaredFields(Class<T> cls) | |
| handleArray | back to summary |
|---|---|
| private void handleArray(IdentityHashMap<K, V> printed, ObjectWriter result, Object obj) | |
| handleObject | back to summary |
|---|---|
private void handleObject(IdentityHashMap<K, V> printed, ObjectWriter result, Object obj)
| |
| objectToString | back to summary |
|---|---|
| public String objectToString(Object obj) objectToString handles display of arbitrary objects. It correctly handles objects whose elements form an arbitrary graph. It uses reflection to display the contents of any kind of object. An object's toString() method may optionally be used, but the default is to ignore all toString() methods except for those defined for primitive types, primitive type wrappers, and strings. | |
| objectToStringHelper | back to summary |
|---|---|
private void objectToStringHelper(IdentityHashMap<K, V> printed, ObjectWriter result, Object obj)
| |
| useToString | back to summary |
|---|---|
| public ObjectUtility useToString(Class<T> cls) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ObjectUtility. | |
| public void |
| data | back to summary |
|---|---|
| pack-priv List<Pair<Class<?>, ObjectUtility. | |
| ClassMap | back to summary |
|---|---|
| public ClassMap() | |
| get | back to summary |
|---|---|
| public ObjectUtility. Return the first element of the ClassMap that is assignable to cls. The order is determined by the order in which the put method was called. Returns null if there is no match. | |
| put | back to summary |
|---|---|
| public void put(Class<T> cls, ObjectUtility. Add obj to the map with key cls. Note that order matters, as the first match is returned. | |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public void |
| alwaysPrint | back to summary |
|---|---|
| public boolean alwaysPrint() | |
| back to summary | |
|---|---|
| public void print(IdentityHashMap<K, V> printed, ObjectWriter buff, Object obj) | |