I've written the following method - it's Groovy/Java based:
I've been asked to convert this method into a property...
can anyone give me some tips on how to do this... I am new
to classes and object-oriented programming:
Code:
boolean sortedDescending(columnId) {
def doubleFormat = NumberFormat.instance
def originalList = txnTable.column(columnId).collect { it.text() }
def descendingSortedList = originalList.sort(false) { it ?
-doubleFormat.parse(it) : Double.POSITIVE_INFINITY }
return (descendingSortedList == originalList)
}
Thanks so much... Rich