Formula

public abstract class Formula<T>
Hierarchy:
Object ⯈ Formula<T>
Known direct subclasses:
Formula.Var<T>

Summary

Nested Classes
static class Formula.Var<T>
Constructors
Formula ()
Default constructor.
Abstract Methods
abstract T calc (Data.Row row)
Instance Methods
String calcString (Data.Row row)
Show all inherited methods (11 more)
protected native Object clone ()
Inherited from Object.
boolean equals (Object)
Inherited from Object.
protected void finalize ()
Inherited from Object.
final native Class<?> getClass ()
Inherited from Object.
native int hashCode ()
Inherited from Object.
final native void notify ()
Inherited from Object.
final native void notifyAll ()
Inherited from Object.
String toString ()
Inherited from Object.
final void wait ()
Inherited from Object.
final native void wait (long)
Inherited from Object.
final void wait (long, int)
Inherited from Object.
Static Methods
static Formula<Double> average (String... hdrs)
static Formula<Double> diff (Formula<Double> x, Formula<Double> y)
static <T>Formula<Boolean> eq (Formula<T> x, Formula<T> y)
static <T>Formula<String> format (ValueFormatter<T> fmt, Formula<T> x)
static Formula<String> format (String fmt, Formula<?> x)
static <T>Formula<T> func (Function<Data.Row, T> f)
static Formula<String> get (String hdr)
static Formula<Integer> getInt (String hdr)
static Formula<Double> getNum (String hdr)
static Formula<Boolean> inRange (Formula<Double> x, double min, double max)
static Formula<Integer> inc (Formula<Integer> x)
static Formula<String> lowercase (Formula<String> s)
static <T>Formula<Boolean> not (Formula<Boolean> x)
static Formula<String> percent (Formula<Double> x)
static Formula<Double> prod (Formula<Double> x, Formula<Double> y)
static Formula<Double> ratio (Formula<Double> x, Formula<Double> y)
static Formula<Integer> round (Formula<Double> x)
static Formula<Double> sum (Formula<Double> x, Formula<Double> y)
static Formula<Integer> sumInt (Formula<Integer> x, Formula<Integer> y)
static Formula<Double> total (String... hdrs)
static Formula<Integer> totalInt (String... hdrs)
static <T>Formula<T> tryOrNull (boolean silent, Formula<T> x)
static Formula<String> uppercase (Formula<String> s)
static <T>Formula<T> val (T v)

calc

public abstract T calc (
	Data.Row row
);

calcString

public String calcString (
	Data.Row row
);

func

public static <T>Formula<T> func (
	Function<Data.Row, T> f
);

val

public static <T>Formula<T> val (
	T v
);

get

public static Formula<String> get (
	String hdr
);

getInt

public static Formula<Integer> getInt (
	String hdr
);

getNum

public static Formula<Double> getNum (
	String hdr
);

tryOrNull

public static <T>Formula<T> tryOrNull (
	boolean silent,
	Formula<T> x
);

format

public static Formula<String> format (
	String fmt,
	Formula<?> x
);

format

public static <T>Formula<String> format (
	ValueFormatter<T> fmt,
	Formula<T> x
);

percent

public static Formula<String> percent (
	Formula<Double> x
);

eq

public static <T>Formula<Boolean> eq (
	Formula<T> x,
	Formula<T> y
);

not

public static <T>Formula<Boolean> not (
	Formula<Boolean> x
);

lowercase

public static Formula<String> lowercase (
	Formula<String> s
);

uppercase

public static Formula<String> uppercase (
	Formula<String> s
);

inc

public static Formula<Integer> inc (
	Formula<Integer> x
);

sumInt

public static Formula<Integer> sumInt (
	Formula<Integer> x,
	Formula<Integer> y
);

totalInt

public static Formula<Integer> totalInt (
	String... hdrs
);

round

public static Formula<Integer> round (
	Formula<Double> x
);

diff

public static Formula<Double> diff (
	Formula<Double> x,
	Formula<Double> y
);

sum

public static Formula<Double> sum (
	Formula<Double> x,
	Formula<Double> y
);

total

public static Formula<Double> total (
	String... hdrs
);

average

public static Formula<Double> average (
	String... hdrs
);

ratio

public static Formula<Double> ratio (
	Formula<Double> x,
	Formula<Double> y
);

prod

public static Formula<Double> prod (
	Formula<Double> x,
	Formula<Double> y
);

inRange

public static Formula<Boolean> inRange (
	Formula<Double> x,
	double min,
	double max
);