mercredi 20 juillet 2016

Design pattern to create an arraylist for a combination of object and value pair

Wanted to know inputs for possible design pattern approach in java:

Scenario: Trying to create an arraylist for a combination of object and value pair. If Objects has A, B, C...etc If value has X1, X2, X3...etc

there could be an arraylist of Y1 for a combination of A & X1 there could be an arraylist of Y2 for a combination of A & X2 ..... etc, so on and so forth.

I tried with Factory Creational Design Pattern, however did not match quite good.Can anyone suggest a possible design approach for this issue ?

Aucun commentaire:

Enregistrer un commentaire