S
Sascha Lauterbach
How can I fast filter a list of objects?
The objects definied as
public class DataClass
{
public String name;
public int Value1;
public boolean Value2;
public Date TimeStamp1;
public Date TimeStamp2;
}
and the filter can e.g. definie as
name < 'data1' and value1 = 20 and not value2
or
value2 xor name = 'data2' and value1 > 30 or timestamp = now()
and so on (the filter will define by the user)
Two DataClass could define with on and the same datas.
I calculate with round about max 5000 data class.
How can I filter this on the fastest way without use a database.
Thanks a lot in advance,
Sascha
The objects definied as
public class DataClass
{
public String name;
public int Value1;
public boolean Value2;
public Date TimeStamp1;
public Date TimeStamp2;
}
and the filter can e.g. definie as
name < 'data1' and value1 = 20 and not value2
or
value2 xor name = 'data2' and value1 > 30 or timestamp = now()
and so on (the filter will define by the user)
Two DataClass could define with on and the same datas.
I calculate with round about max 5000 data class.
How can I filter this on the fastest way without use a database.
Thanks a lot in advance,
Sascha