Container class for generating an ID for stored objects.