Package repast.simphony.util.collections
Class SimpleWrapper<T>
A simple wrapper class that will hold an object and for its
toString()
will return a
given description. This stores the description as the super's first, and the object as the
super's second.- Author:
- Jerry Vos
-
Constructor Summary
ConstructorDescriptionSimpleWrapper
(String description, T wrappedObject) Constructs this with the specified description and wrapped object. -
Method Summary
-
Constructor Details
-
SimpleWrapper
Constructs this with the specified description and wrapped object. This calls on the superPair(X, Y)
with the first argument as the description and the second as the wrapped object.- Parameters:
description
- the description of the wrapped objectwrappedObject
- the wrapped object
-
-
Method Details
-
toString
Same asPair.getFirst()
. -
getWrappedObject
Same asPair.getSecond()
.
-