[MATH-1001] Added additional clarification to javadoc wrt byte and short parameters.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1519820 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Neidhart 2013-09-03 19:58:03 +00:00
parent 217cabc0d1
commit 83b5df5178
1 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,9 @@ import org.apache.commons.math3.util.MathUtils;
* Integer values (int, long, Integer, Long) are not distinguished by type --
* i.e. <code>addValue(Long.valueOf(2)), addValue(2), addValue(2l)</code> all have
* the same effect (similarly for arguments to <code>getCount,</code> etc.).</p>
* <p>NOTE: byte and short values will be implicitly converted to int values
* by the compiler, thus there are no explicit overloaded methods for these
* primitive types.</p>
* <p>
* char values are converted by <code>addValue</code> to Character instances.
* As such, these values are not comparable to integral values, so attempts