Class Increment
- java.lang.Object
-
- uk.gov.gchq.koryphe.function.KorypheFunction<Number,Number>
-
- uk.gov.gchq.koryphe.impl.function.Increment
-
public class Increment extends KorypheFunction<Number,Number>
AIncrement
is aFunction
that takes a number and adds a given number to it. Note the output number type will match the increment type. So if you start with an input value of int 1 and then increment it with a double 2.0. The result will be a double 3.0.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Number
apply(Number input)
boolean
equals(Object o)
Number
getIncrement()
int
hashCode()
void
setIncrement(Number increment)
-
-
-
Constructor Detail
-
Increment
public Increment()
-
Increment
public Increment(Number increment)
-
-
Method Detail
-
getIncrement
public Number getIncrement()
-
setIncrement
public void setIncrement(Number increment)
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classKorypheFunction<Number,Number>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classKorypheFunction<Number,Number>
-
-