Class Length
- java.lang.Object
-
- uk.gov.gchq.koryphe.function.KorypheFunction<Object,Integer>
-
- uk.gov.gchq.koryphe.impl.function.Length
-
- All Implemented Interfaces:
Function<Object,Integer>
,InputValidator
public class Length extends KorypheFunction<Object,Integer> implements InputValidator
ALength
is aKorypheFunction
that returns the length for a provided object.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
apply(Object value)
boolean
equals(Object o)
Integer
getMaxLength()
int
hashCode()
ValidationResult
isInputValid(Class<?>... arguments)
void
setMaxLength(Integer maxLength)
-
-
-
Constructor Detail
-
Length
public Length()
-
Length
public Length(Integer maxLength)
-
-
Method Detail
-
isInputValid
public ValidationResult isInputValid(Class<?>... arguments)
- Specified by:
isInputValid
in interfaceInputValidator
-
getMaxLength
public Integer getMaxLength()
-
setMaxLength
public void setMaxLength(Integer maxLength)
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classKorypheFunction<Object,Integer>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classKorypheFunction<Object,Integer>
-
-