proofpoint/platform — Issue #48: Duration class should provide coercion to integer types
Author: markkent
Created: 2011-10-12 14:43:15+00:00
State: open

Imported from tracking system. Originally raised P3 by mkent:

The Duration class convertTo() and getMillis() functions return doubles, forcing the caller to cast to integer types for use in, say setting max-age in JAX RS CacheControl objects.

It would be nice if the messy details of truncation were encapsulated inside the object.