com.avaje.ebean.text
Class TimeStringParser

java.lang.Object
  extended by com.avaje.ebean.text.TimeStringParser
All Implemented Interfaces:
StringParser

public final class TimeStringParser
extends Object
implements StringParser

Parser for TIME types that supports both HH:mm:ss and HH:mm.

Author:
rbygrave

Constructor Summary
TimeStringParser()
           
 
Method Summary
static TimeStringParser get()
          Return a shared instance as this is thread safe.
 Object parse(String value)
          Parse the String supporting both HH:mm:ss and HH:mm formats.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeStringParser

public TimeStringParser()
Method Detail

get

public static TimeStringParser get()
Return a shared instance as this is thread safe.


parse

public Object parse(String value)
Parse the String supporting both HH:mm:ss and HH:mm formats.

Specified by:
parse in interface StringParser


Copyright © 2012. All Rights Reserved.