design of a generic parameter class based on a list