The java.util.concurrent library added a little gem of a class, TimeUnit, which is well worth knowing a bit about. The class is used in java.util.concurrent to inform time-based methods how a given timing parameter should be interpreted. This class, however, can breathe readability back into an API that would otherwise be tough to eyeball.
Consider an example from the Timing Framework project....
on Oct 21, 2011
It's been several years since the book Filthy Rich Clients by Chet Haase and Romain Guy was published back in 2008. After reading the book I became a big fan of the Timing Framework that Chet posted at the timingframework project at java.net. Chet had elegantly solved a tricky problem—controlling the timing of animations. But, woe is me, I developed Eclipse plug-ins and Chet's code was...
on Apr 13, 2011