Class SimpleWrapper<T>


  • public class SimpleWrapper<T>
    extends Pair<String,​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 Detail

      • SimpleWrapper

        public SimpleWrapper​(String description,
                             T wrappedObject)
        Constructs this with the specified description and wrapped object. This calls on the super Pair#Pair(X, Y) with the first argument as the description and the second as the wrapped object.
        Parameters:
        description - the description of the wrapped object
        wrappedObject - the wrapped object