edvin
09/03/2016, 7:02 PMedvin
09/03/2016, 8:17 PMapply
all together. I'm also quite sure that the best approach is to write column("Name") { value { it.value.name } }
instead of column("Name") { it.value.name }
- even though it looks corny as a one-liner, and you'd some times need to write just a little more, this is the most flexible/consistent approach.edvin
09/03/2016, 9:22 PMedvin
09/03/2016, 9:23 PMcolumn("Name", YourObject::name)
thomasnield
09/03/2016, 9:24 PMedvin
09/03/2016, 9:43 PMcolumn("B Column") value { it.value.B }
thomasnield
09/03/2016, 9:46 PMedvin
09/03/2016, 9:47 PMthomasnield
09/03/2016, 9:47 PMthomasnield
09/03/2016, 9:47 PMedvin
09/03/2016, 9:48 PMron
09/04/2016, 8:33 AMedvin
09/04/2016, 8:39 AMvalidExtensions.contains(file.name.toLowerCase().substringAfterLast('.')
would also remove some of that uglyness 🙂ron
09/04/2016, 8:40 AMron
09/04/2016, 8:40 AMedvin
09/04/2016, 8:41 AMfilterNot { category.contains(it) }
edvin
09/04/2016, 8:42 AMCategory
could have a contains
function that puts the "contains" logic in the right place and removes it from the filter expression.edvin
09/04/2016, 8:43 AMedvin
09/04/2016, 9:01 AMron
09/04/2016, 9:02 AMron
09/04/2016, 9:02 AMron
09/04/2016, 9:03 AMedvin
09/04/2016, 9:03 AMron
09/04/2016, 9:03 AMedvin
09/04/2016, 10:41 AMedvin
09/04/2016, 10:41 AMron
09/04/2016, 11:24 AMedvin
09/04/2016, 5:09 PM