public class ToStringDefault
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected Filter<java.lang.reflect.Field> |
filterForToStringMethod
The filter used to tell us what field will be ignored by method
toString().Here we provide a default FieldFilterByName, which is instantiated with getFieldNamesIgnoredByToStringMethod().In subclass, we can either override getFieldNamesIgnoredByToStringMethod() or we can assign a new Filter to filterForToStringMethod. |
| Constructor and Description |
|---|
ToStringDefault() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<java.lang.String> |
getFieldNamesIgnoredByToStringMethod()
Here an empty list is returned.
Subclass needs to provide its own list to ignore so that these fields will not be added to method toString(). |
java.lang.String |
toString() |
protected transient Filter<java.lang.reflect.Field> filterForToStringMethod
toString().FieldFilterByName, which is instantiated with getFieldNamesIgnoredByToStringMethod().getFieldNamesIgnoredByToStringMethod() or we can assign a new Filter to filterForToStringMethod.getFieldNamesIgnoredByToStringMethod()public java.lang.String toString()
toString in class java.lang.Objectprotected java.util.List<java.lang.String> getFieldNamesIgnoredByToStringMethod()
toString().toString().Copyright © SAS Institute. All Rights Reserved.