org.qi4j.api.property
Class Numbers

java.lang.Object
  extended by org.qi4j.api.property.Numbers

public final class Numbers
extends Object

Convenience class for mathematical operations on numerical properties.

add(object.number(), 5)


Constructor Summary
Numbers()
           
 
Method Summary
static Property<BigDecimal> add(Property<BigDecimal> property, BigDecimal amount)
           
static Property<Double> add(Property<Double> property, double amount)
           
static Property<Float> add(Property<Float> property, float amount)
           
static Property<Integer> add(Property<Integer> property, int amount)
           
static Property<Long> add(Property<Long> property, long amount)
           
static Property<BigDecimal> div(Property<BigDecimal> property, BigDecimal amount)
           
static Property<Double> div(Property<Double> property, double amount)
           
static Property<Float> div(Property<Float> property, float amount)
           
static Property<Integer> div(Property<Integer> property, int amount)
           
static Property<Long> div(Property<Long> property, long amount)
           
static Property<BigDecimal> mult(Property<BigDecimal> property, BigDecimal amount)
           
static Property<Double> mult(Property<Double> property, double amount)
           
static Property<Float> mult(Property<Float> property, float amount)
           
static Property<Integer> mult(Property<Integer> property, int amount)
           
static Property<Long> mult(Property<Long> property, long amount)
           
static Property<BigDecimal> sub(Property<BigDecimal> property, BigDecimal amount)
           
static Property<Double> sub(Property<Double> property, double amount)
           
static Property<Float> sub(Property<Float> property, float amount)
           
static Property<Integer> sub(Property<Integer> property, int amount)
           
static Property<Long> sub(Property<Long> property, long amount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Numbers

public Numbers()
Method Detail

add

public static Property<Integer> add(Property<Integer> property,
                                    int amount)

mult

public static Property<Integer> mult(Property<Integer> property,
                                     int amount)

sub

public static Property<Integer> sub(Property<Integer> property,
                                    int amount)

div

public static Property<Integer> div(Property<Integer> property,
                                    int amount)

add

public static Property<Long> add(Property<Long> property,
                                 long amount)

mult

public static Property<Long> mult(Property<Long> property,
                                  long amount)

sub

public static Property<Long> sub(Property<Long> property,
                                 long amount)

div

public static Property<Long> div(Property<Long> property,
                                 long amount)

add

public static Property<Double> add(Property<Double> property,
                                   double amount)

mult

public static Property<Double> mult(Property<Double> property,
                                    double amount)

sub

public static Property<Double> sub(Property<Double> property,
                                   double amount)

div

public static Property<Double> div(Property<Double> property,
                                   double amount)

add

public static Property<Float> add(Property<Float> property,
                                  float amount)

mult

public static Property<Float> mult(Property<Float> property,
                                   float amount)

sub

public static Property<Float> sub(Property<Float> property,
                                  float amount)

div

public static Property<Float> div(Property<Float> property,
                                  float amount)

add

public static Property<BigDecimal> add(Property<BigDecimal> property,
                                       BigDecimal amount)

mult

public static Property<BigDecimal> mult(Property<BigDecimal> property,
                                        BigDecimal amount)

sub

public static Property<BigDecimal> sub(Property<BigDecimal> property,
                                       BigDecimal amount)

div

public static Property<BigDecimal> div(Property<BigDecimal> property,
                                       BigDecimal amount)