org.gridkit.jvmtool.cli
Class TimeIntervalConverter

java.lang.Object
  extended by org.gridkit.jvmtool.cli.TimeIntervalConverter
All Implemented Interfaces:
com.beust.jcommander.IStringConverter<Long>

public class TimeIntervalConverter
extends Object
implements com.beust.jcommander.IStringConverter<Long>

Author:
Alexey Ragozin (alexey.ragozin@gmail.com)

Constructor Summary
TimeIntervalConverter()
           
 
Method Summary
 Long convert(String value)
           
static long toMillis(String rawStr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeIntervalConverter

public TimeIntervalConverter()
Method Detail

toMillis

public static long toMillis(String rawStr)

convert

public Long convert(String value)
Specified by:
convert in interface com.beust.jcommander.IStringConverter<Long>


Copyright © 2019. All Rights Reserved.