Code Examples
A repository of 155 code examples for BeepBeep
UnaryDouble.java
1
package
functions.custom;
2
3
import
ca.uqac.lif.cep.functions.UnaryFunction;
4
5
public
class
UnaryDouble
extends
UnaryFunction<Number,Number>
6
{
7
public
UnaryDouble
()
8
{
9
super(Number.class, Number.class);
10
}
11
12
@Override
13
public
Number getValue(Number x)
14
{
15
return
x.floatValue() * 2;
16
}
17
}
functions.custom.UnaryDouble
Definition:
UnaryDouble.java:5
Source
src
functions
custom
UnaryDouble.java
Generated by
1.8.13