public final class PartitionUtils extends Object
Constructor and Description |
---|
PartitionUtils() |
Modifier and Type | Method and Description |
---|---|
static List<? extends Item> |
setScale(List<? extends Item> items,
long max)
Set the scale of items based on the max provided
1/2, 1, 2, 3, 4, 5, ..., n
|
static Long |
sum(List<? extends Item> items,
long max)
Sums a list of numbers, if a number is greater than max only max will be summed
|
static Long |
sum(List<Item> items)
Sums a list of numbers
|
Copyright © 2016 iNetria. All rights reserved.