Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

DataTools.findAll behaviour with different types

$
0
0
I frequently use the DataTools.findAll(java.util.List rows, java.lang.Object propertyName, java.lang.Object value) method.
When the property in a Map has a different type from the passed value, which is the expected result?

ie:
List<Map> testList = DataTools.buildList(DataTools.buildMap("number", new BigDecimal("1234")));
List match1 = DataTools.findAll(testList, "number", new Long("1234"));
List match2 = DataTools.findAll(testList, "number", "1234");
....

I'm asking because I see different behavior for different SmartClient builds, and I'd like to know before doing more test cases.

Viewing all articles
Browse latest Browse all 4756

Trending Articles