Package org.cactoos.number
Class AvgOf
- java.lang.Object
-
- java.lang.Number
-
- org.cactoos.number.NumberEnvelope
-
- org.cactoos.number.AvgOf
-
- All Implemented Interfaces:
Serializable
public final class AvgOf extends NumberEnvelope
Average of numbers.Here is how you can use it to find the mathematical average of numbers:
int avg = new AvgOf(1, 2, 3, 4).intValue(); long avg = new AvgOf(1L, 2L, 3L).longValue(); int avg = new AvgOf(numbers).intValue();
There is no thread-safety guarantee.
- Since:
- 1.0.0
- See Also:
- Serialized Form
-
-
Method Summary
-
Methods inherited from class org.cactoos.number.NumberEnvelope
byteValue, doubleValue, equals, floatValue, hashCode, intValue, longValue, shortValue, toString
-
-