Class DefaultValueConverter.EpochTimestampConverter

java.lang.Object
net.jazdw.rql.converter.DefaultValueConverter.EpochTimestampConverter
All Implemented Interfaces:
ValueConverter<Instant>
Enclosing class:
DefaultValueConverter

public static class DefaultValueConverter.EpochTimestampConverter extends Object implements ValueConverter<Instant>
DefaultValueConverter for epoch millisecond timestamps
  • Field Details

  • Constructor Details

    • EpochTimestampConverter

      public EpochTimestampConverter()
  • Method Details

    • convert

      public Instant convert(String textValue)
      Description copied from interface: ValueConverter
      Converts a string value to its Java representation
      Specified by:
      convert in interface ValueConverter<Instant>
      Parameters:
      textValue - milliseconds since 1970-01-01 00:00:00 UTC, e.g. 1431476669373
      Returns:
      converted value