Class Concat
- java.lang.Object
-
- uk.gov.gchq.koryphe.function.KorypheFunction<TUPLE,R>
-
- uk.gov.gchq.koryphe.tuple.function.KorypheFunctionN<Tuple2<T,U>,R>
-
- uk.gov.gchq.koryphe.tuple.function.KorypheFunction2<Object,Object,String>
-
- uk.gov.gchq.koryphe.impl.function.Concat
-
public class Concat extends KorypheFunction2<Object,Object,String>
AConcat
is aFunction
that takes in two objects and calls toString on them and concatenates them together. The default separator is a comma, you can set a custom separator using setSeparator(String).
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
apply(Object input1, Object input2)
boolean
equals(Object obj)
String
getSeparator()
int
hashCode()
void
setSeparator(String separator)
String
toString()
-
Methods inherited from class uk.gov.gchq.koryphe.tuple.function.KorypheFunction2
delegateApply
-
Methods inherited from class uk.gov.gchq.koryphe.tuple.function.KorypheFunctionN
apply
-
-
-
-
Constructor Detail
-
Concat
public Concat()
-
Concat
public Concat(String separator)
-
-
Method Detail
-
apply
public String apply(Object input1, Object input2)
- Specified by:
apply
in classKorypheFunction2<Object,Object,String>
-
getSeparator
public String getSeparator()
-
setSeparator
public void setSeparator(String separator)
-
equals
public boolean equals(Object obj)
-
hashCode
public int hashCode()
-
-