In java how can i create a class holding multiple records or values of any type to its instance ?
For example, MyDataset<AnyType>
, will be holding multiple values of type AnyType
.
How should I create MyDataset
class, so that when I create an instance of MyDataset
, I could add records or values
to it of one type a time ?
So that later I could iterate MyDataset<AnyType>
to get values.