Package dev.roanh.gmark.util
Class DataProxy<T>
java.lang.Object
dev.roanh.gmark.util.DataProxy<T>
- Type Parameters:
T
- The data type to proxy.
Class that can be used as a wrapper around some
other object. DataProxy instances are never equal
to other DataProxy instances unless they are exactly
the same object. This class is intended for use with
the
UniqueGraph
class so that multiple nodes can
be added with the same data.-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
data
The stored proxy data.
-
-
Constructor Details
-
DataProxy
Constructs a new DataProxy instances with the given data to proxy.- Parameters:
data
- The data to store.
-
-
Method Details