Generic class to make a collection of any object or primitive type.