?? minimum.as
字號(hào):
package flare.query
{
/**
* Aggregate operator for computing the minimum of a set of values.
*/
public class Minimum extends AggregateExpression
{
private var _value:Object = null;
/**
* Creates a new Minimum operator
* @param input the sub-expression of which to compute the minimum
*/
public function Minimum(input:*) {
super(input);
}
/**
* @inheritDoc
*/
public override function eval(o:Object=null):*
{
return _value;
}
/**
* @inheritDoc
*/
public override function reset():void
{
_value = null;
}
/**
* @inheritDoc
*/
public override function aggregate(value:Object):void
{
value = _expr.eval(value);
if (_value == null || value < _value) {
_value = value;
}
}
} // end of class Minimum
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -