public class NumberFunctions extends Object
Constructor and Description |
---|
NumberFunctions() |
Modifier and Type | Method and Description |
---|---|
static Object |
avg(Object objects,
String field)
If the object is instance of LazyDataModelImpl, then shoudld call avg
using query.
|
static Collection |
getCollection(Object objects)
If the object is a instanceof DataModel (example: standart DataModel,
primefaces LazyDataModel, xpert-framework LazyDataModelImpl ), return
getWrappedData()
|
static Object |
max(Object objects,
String field)
If the object is instance of LazyDataModelImpl, then shoudld call avg
using query.
|
static Object |
min(Object objects,
String field)
If the object is instance of LazyDataModelImpl, then shoudld call avg
using query.
|
static Object |
sum(Object objects,
String field)
If the object is instance of LazyDataModelImpl, then shoudld call sum
using query.
|
static Integer |
sumInteger(Object objects,
String field)
Sum field with return of type Integer
|
static Long |
sumLong(Object objects,
String field)
Sum field with return of type Long
|
public static Collection getCollection(Object objects)
objects
- public static Object max(Object objects, String field)
objects
- field
- public static Object min(Object objects, String field)
objects
- field
- public static Object avg(Object objects, String field)
objects
- field
- public static Object sum(Object objects, String field)
objects
- field
- public static Integer sumInteger(Object objects, String field)
objects
- field
- Copyright © 2015. All rights reserved.