| |
|
| java.lang.Object org.cougaar.util.ToStringMemo
ToStringMemo | abstract public class ToStringMemo (Code) | | A hack for computing a complex object's toString as needed,
but without keeping it around for ever.
|
Inner Class :abstract public static class SoftToStringMemo extends ToStringMemo | |
Inner Class :abstract public static class UncachedToStringMemo extends ToStringMemo | |
Field Summary | |
final protected static boolean | isCaching |
isCaching | final protected static boolean isCaching(Code) | | |
discard | abstract public void discard()(Code) | | called to discard any cached toString information *
|
generate | abstract protected String generate()(Code) | | Implement this to be the actual toString implementation *
|
getInstance | public static ToStringMemo getInstance(Object gen)(Code) | | Construct a ToStringMemo which uses the parameter object's toString
to build the memoized toString value.
|
toString | abstract public String toString()(Code) | | return a cached value or call generate *
|
|
|
|