com.jrockit.memleak.util
Interface IDummy

All Known Implementing Classes:
DummyClassInfo, DummyObjectInfo

public interface IDummy

Marker interface used to designate implementations that doesn't provide real state from an underlying model, but merely exist to avoid passing and checking for null everywhere. These implementations should be fully functional according to the contracts of the implemented interfaces, so that they won't need special treatment. However, there might be certain use cases where it may be useful to know if it actually represents some state of the underlying model or not. This interface provides that info, without forcing any additional methods to be implemented.

Yes, this could in principle be a runtime annotation instead, but using it then would be slightly more verbose.

Author:
mpersson



Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.