mobi.voiceassistant.client.converter
Class TimeConverter
java.lang.Object
mobi.voiceassistant.client.converter.TimeConverter
- All Implemented Interfaces:
- TokenConverter<Time>
public final class TimeConverter
- extends Object
- implements TokenConverter<Time>
Created with IntelliJ IDEA.
User: morfeusys
Date: 11.07.12
Time: 16:21
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE_RELATIVE_TIME
public static final String TYPE_RELATIVE_TIME
- See Also:
- Constant Field Values
TYPE_ABSOLUTE_TIME
public static final String TYPE_ABSOLUTE_TIME
- See Also:
- Constant Field Values
TYPE_PART_TIME
public static final String TYPE_PART_TIME
- See Also:
- Constant Field Values
TIME_UNIT_HOURS
public static final String TIME_UNIT_HOURS
- See Also:
- Constant Field Values
TIME_UNIT_MINUTES
public static final String TIME_UNIT_MINUTES
- See Also:
- Constant Field Values
TIME_UNIT_SECONDS
public static final String TIME_UNIT_SECONDS
- See Also:
- Constant Field Values
TIME_PART_PM
public static final String TIME_PART_PM
- See Also:
- Constant Field Values
TIME_PART_AM
public static final String TIME_PART_AM
- See Also:
- Constant Field Values
getInstance
public static TokenConverter<Time> getInstance()
convert
public Time convert(Token token)
- Specified by:
convert
in interface TokenConverter<Time>
convertPartTime
public Time convertPartTime(Token token)
convertRelativeTime
public Time convertRelativeTime(Token token)
convertAbsoluteTime
public Time convertAbsoluteTime(Token token)