/**@class android.webkit.DateSorter @extends java.lang.Object Sorts dates into the following groups: Today Yesterday seven days ago one month ago older than a month ago */ var DateSorter = { /**must be >= 3 */ DAY_COUNT : "5", /** @param {Number} time time since the Epoch in milliseconds, such as that returned by Calendar.getTimeInMillis() @return {Number} an index from 0 to (DAY_COUNT - 1) that identifies which date bin this date belongs to */ getIndex : function( ) {}, /** @param {Number} index date bin index as returned by getIndex() @return {String} string label suitable for display to user */ getLabel : function( ) {}, /** @param {Number} index date bin index as returned by getIndex() @return {Number} date boundary at given index */ getBoundary : function( ) {}, };