Spec-Zone .ru
спецификации, руководства, описания, API
|
public class TimeStringConverter extends DateTimeStringConverter
StringConverter
implementation for Date
values that
represent time.
DateStringConverter
,
DateTimeStringConverter
dateFormat, locale, pattern
Constructor and Description |
---|
TimeStringConverter() |
TimeStringConverter(java.text.DateFormat dateFormat) |
TimeStringConverter(java.util.Locale locale) |
TimeStringConverter(java.util.Locale locale,
java.lang.String pattern) |
TimeStringConverter(java.lang.String pattern) |
Modifier and Type | Method and Description |
---|---|
protected java.text.DateFormat |
getDateFormat()
Return a
DateFormat instance to use for formatting
and parsing in this StringConverter . |
fromString, toString
public TimeStringConverter()
public TimeStringConverter(java.util.Locale locale)
public TimeStringConverter(java.lang.String pattern)
public TimeStringConverter(java.util.Locale locale, java.lang.String pattern)
public TimeStringConverter(java.text.DateFormat dateFormat)
protected java.text.DateFormat getDateFormat()
Return a DateFormat
instance to use for formatting
and parsing in this StringConverter
.
getDateFormat
in class DateTimeStringConverter
Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to