How to define a duration elegantly in Java 7
<p>To define a duration, sometimes we just write below</p>

<pre><code>long thirtyMinutes = 30 * 60 * 1000; // In Miliseconds
</code></pre>

<p>As of Java 8 with the <a href="http://docs.oracle.com/javase/8/docs/api/java/time/package-summary.html" rel="nofollow">java.time</a> framework, we could make it more elegant using</p>

<pre><code>long thirtyMinutes = Duration.ofMinutes(30).toMillis();
</code></pre>

<p>But as I'm still in Java 7 (Android), I can't use java.time.Duration. So is there anyway I could have it define as elegant as Java 8, instead of just ruing the multiplication equation above?</p>