Class Average
java.lang.Object
com.jayway.jsonpath.internal.function.numeric.AbstractAggregation
com.jayway.jsonpath.internal.function.numeric.Average
- All Implemented Interfaces:
PathFunction
Provides the average of a series of numbers in a JSONArray
Created by mattg on 6/26/15.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.jayway.jsonpath.internal.function.numeric.AbstractAggregation
invoke
-
Field Details
-
summation
-
count
-
-
Constructor Details
-
Average
public Average()
-
-
Method Details
-
next
Description copied from class:AbstractAggregation
Defines the next value in the array to the mathmatical function- Specified by:
next
in classAbstractAggregation
- Parameters:
value
- The numerical value to process next
-
getValue
Description copied from class:AbstractAggregation
Obtains the value generated via the series of next value calls- Specified by:
getValue
in classAbstractAggregation
- Returns:
- A numerical answer based on the input value provided
-