units and quantities with Java
functional interfaces like Function.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static < the type of quantity Q extends Quantity | Returns: A predicate to filter to not be these units- units to be filtered (optional) units)Predicate to filter excluding these units |
| public static < the type of quantity Q extends Quantity | Returns: A predicate to filter one or more units- units to be filtered (optional) units)Predicate to filter to one or more units |
| public static < the type of quantity Q extends Quantity | |
| public static < the type of quantity Q extends Quantity | |
| public static < the type of quantity Q extends Quantity | |
| public static < the type of quantity Q extends Quantity | Returns: the Predicate greater than this number, ignoring units- the value to be used in Predicate value)creates a Filter to greater than number, ignoring units |
| public static < the type of quantity Q extends Quantity | Returns: the Predicate greater than this measure- the measure to be used in filter quantity)creates a filter to greater than the quantity measure |
| public static < the type of quantity Q extends Quantity | Returns: the Predicate greater or equals than this number, ignoring units- the value to be used in Predicate value)creates a Filter to greater or equals than number, ignoring units |
| public static < the type of quantity Q extends Quantity | Returns: the Predicate greater or equals than this measure- the measure to be used in filter quantity)creates a filter to greater or equals than the quantity measure |
| public static < the type of quantity Q extends Quantity | Returns: the Predicate greater than this number, ignoring units- the value to be used in Predicate value)creates a Filter to lesser than number, ignoring units |
| public static < the type of quantity Q extends Quantity | Returns: the Predicate lesser than this measure- the measure to be used in filter quantity)creates a filter to lesser than the quantity measure |
| public static < the type of quantity Q extends Quantity | Returns: the Predicate lesser or equals than this number, ignoring units- the value to be used in Predicate value)creates a Filter to lesser or equals than number, ignoring units |
| public static < the type of quantity Q extends Quantity | Returns: the Predicate lesser or equals than this measure- the measure to be used in filter quantity)creates a filter to lesser or equals than the quantity measure |
| public static < the type of quantity Q extends Quantity | Returns: the max BinaryOperator, not null.Creates a BinaryOperator to calculate the maximum Quantity |
| public static < the type of quantity Q extends Quantity | Returns: the min BinaryOperator, not null.Creates a BinaryOperator to calculate the minimum Quantity |
| public static < the type of quantity Q extends Quantity | Returns: Given:
Quantity<Time> day = timeFactory.create(1, Units.DAY);
will return: Creates a comparator to sort by natural order, looking to both the unit and the value. |
| public static < the type of quantity Q extends Quantity | Returns: Given:
Quantity<Time> day = timeFactory.create(1, Units.DAY);
will return: Creates a comparator to sort by natural order descending, looking to both the unit and the value. |
| public static < the type of quantity Q extends Quantity | Returns: Given:
will return: Creates a comparator to sort by number, ignoring the unit. |
| public static < the type of quantity Q extends Quantity | Returns: Given:
will return: Creates a comparator to sort by number descending, ignoring the unit. |
| public static < the type of quantity Q extends Quantity | Returns: Given:
will return: Creates a comparator to sort by name, ignoring the value. |
| public static < the type of quantity Q extends Quantity | Returns: Given:
Quantity<Time> day = timeFactory.create(1, Units.DAY);
will return: Creates a comparator to sort by name descending, ignoring the value. |
| public static < the type of quantity Q extends Quantity | |
| public static < the type of quantity Q extends Quantity |
| QuantityFunctions | back to summary |
|---|---|
| private QuantityFunctions() | |
| fiterByExcludingUnit | back to summary |
|---|---|
| public static <Q extends Quantity Predicate to filter excluding these units | |
| fiterByUnit | back to summary |
|---|---|
| public static <Q extends Quantity Predicate to filter to one or more units | |
| groupByUnit | back to summary |
|---|---|
| public static <Q extends Quantity creates a function to group quantities by their | |
| isBetween | back to summary |
|---|---|
| public static <Q extends Quantity creates a Filter to between, lesser or equals and greater or equals, than number, ignoring units | |
| isBetween | back to summary |
|---|---|
| public static <Q extends Quantity creates a filter to between, lesser or equals and greater or equals, than the quantity measure | |
| isGreaterThan | back to summary |
|---|---|
| public static <Q extends Quantity creates a Filter to greater than number, ignoring units | |
| isGreaterThan | back to summary |
|---|---|
| public static <Q extends Quantity creates a filter to greater than the quantity measure | |
| isGreaterThanOrEqualTo | back to summary |
|---|---|
| public static <Q extends Quantity creates a Filter to greater or equals than number, ignoring units | |
| isGreaterThanOrEqualTo | back to summary |
|---|---|
| public static <Q extends Quantity creates a filter to greater or equals than the quantity measure | |
| isLessThan | back to summary |
|---|---|
| public static <Q extends Quantity creates a Filter to lesser than number, ignoring units | |
| isLessThan | back to summary |
|---|---|
| public static <Q extends Quantity creates a filter to lesser than the quantity measure | |
| isLessThanOrEqualTo | back to summary |
|---|---|
| public static <Q extends Quantity creates a Filter to lesser or equals than number, ignoring units | |
| isLessThanOrEqualTo | back to summary |
|---|---|
| public static <Q extends Quantity creates a filter to lesser or equals than the quantity measure | |
| max | back to summary |
|---|---|
| public static <Q extends Quantity Creates a BinaryOperator to calculate the maximum Quantity
| |
| min | back to summary |
|---|---|
| public static <Q extends Quantity Creates a BinaryOperator to calculate the minimum Quantity
| |
| sortNatural | back to summary |
|---|---|
| public static <Q extends Quantity Creates a comparator to sort by natural order, looking to both the unit and the value.
| |
| sortNaturalDesc | back to summary |
|---|---|
| public static <Q extends Quantity Creates a comparator to sort by natural order descending, looking to both the unit and the value.
| |
| sortNumber | back to summary |
|---|---|
| public static <Q extends Quantity Creates a comparator to sort by number, ignoring the unit.
| |
| sortNumberDesc | back to summary |
|---|---|
| public static <Q extends Quantity Creates a comparator to sort by number descending, ignoring the unit.
| |
| sortSymbol | back to summary |
|---|---|
| public static <Q extends Quantity Creates a comparator to sort by name, ignoring the value.
| |
| sortSymbolDesc | back to summary |
|---|---|
| public static <Q extends Quantity Creates a comparator to sort by name descending, ignoring the value.
| |
| sum | back to summary |
|---|---|
| public static <Q extends Quantity Creates a BinaryOperator to sum.
| |
| sum | back to summary |
|---|---|
| public static <Q extends Quantity Creates a BinaryOperator to sum converting to unit
| |