Class InstantToTimestampSecondsConverter

java.lang.Object
com.fasterxml.jackson.databind.util.StdConverter<Instant,Long>
info.bitrich.xchangestream.gateio.config.converter.InstantToTimestampSecondsConverter
All Implemented Interfaces:
com.fasterxml.jackson.databind.util.Converter<Instant,Long>

public class InstantToTimestampSecondsConverter extends com.fasterxml.jackson.databind.util.StdConverter<Instant,Long>
Converts Instant to timestamp in seconds
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.fasterxml.jackson.databind.util.Converter

    com.fasterxml.jackson.databind.util.Converter.None
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class com.fasterxml.jackson.databind.util.StdConverter

    _findConverterType, getInputType, getOutputType

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • InstantToTimestampSecondsConverter

      public InstantToTimestampSecondsConverter()
  • Method Details

    • convert

      public Long convert(Instant value)
      Specified by:
      convert in interface com.fasterxml.jackson.databind.util.Converter<Instant,Long>
      Specified by:
      convert in class com.fasterxml.jackson.databind.util.StdConverter<Instant,Long>