Class Parameter
java.lang.Object
io.aiven.commons.kafka.connector.common.templating.Parameter
A parameter is a name/value pair
-
Field Summary
Fields -
Method Summary
-
Field Details
-
EMPTY
An EMPTY parameter
-
-
Method Details
-
isEmpty
public boolean isEmpty()Determines if this is empty.- Returns:
trueif this is empty.
-
getName
Gets the parameter name.- Returns:
- the parameter name.
-
getValue
Gets the parameter value.- Returns:
- the parameter value.
-
asBoolean
Returns the parameter value as a boolean. Shorthand forBoolean.parseBoolean(getValue()).- Returns:
- the paramater value as a poolean.
-
of
Creates a Parameter from a name and value.- Parameters:
name- the name (may not be null)value- the value (may not be null)- Returns:
- the parameter.
-
toString
-
equals
-
hashCode
public int hashCode()
-