Zero Constant
Seen recently in the application I’m working on:
private final static int ZERO = 0;
Damn handy if you want to change ZERO to, say, 1 or 10000 everywhere.
14.12.08
— Sébastien Le CallonnecSeen recently in the application I’m working on:
private final static int ZERO = 0;
Damn handy if you want to change ZERO to, say, 1 or 10000 everywhere.
your_ip_is_blacklisted_by sbl.spamhaus.org
← Find a Class in Jars Installing Latin Modern Fonts in LaTeX →
powered by txp · © All Rights Reserved, 2003, 2012, 2015, Weblogism.com
licensed under a Creative Commons License.
And it’s been declared private, because another part of the application may declare another ZERO constant, with another value. And you definitely don’t want any confusion between those …
— Pierre · 2009-01-09 17:00 · #
That’s true. We certainly wouldn’t want that! ;)
I think this was originally a BigDecimal changed into an int. Obviously, it does look silly now…
— sebastien · 2009-01-21 13:11 · #