I have such class:
public class FirstTypeMD extends BaseParams {
Integer framePerSec;
public FirstTypeMD(Integer energyCons, Integer mass, Integer tempRange, Boolean electricProtect,
Boolean radioProtect, Integer framePerSec) {
super(energyCons, mass, tempRange, electricProtect, radioProtect);
this.framePerSec = framePerSec;
}
public void setFramePerSec(Integer framePerSec) {
this.framePerSec = framePerSec;
}
public Integer getFramePerSec() {
return framePerSec;
}
}
I would like to create dynamic filter for arraylist with this class objects. For example at certain situation I will need result of filtering by energyCons in another by tempRange and somtimes both of them. I need filter with a lot of variations of this class fields. I also asked such question but here I was suggested to create a lot of constructors for filtering. For me it looks strange :(