Class NumericConverter

java.lang.Object
org.graylog2.plugin.inputs.Converter
org.graylog2.inputs.converters.NumericConverter

public class NumericConverter extends Converter
Author:
Lennart Koopmann <[email protected]>
  • Constructor Details

  • Method Details

    • convert

      public Object convert(String value)
      Attempts to convert the provided string value to a numeric type, trying Integer, Long and Double in order until successful.
      Specified by:
      convert in class Converter
    • buildsMultipleFields

      public boolean buildsMultipleFields()
      Specified by:
      buildsMultipleFields in class Converter