Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.base.stats.element
Class HourOfDayElementFormat

java.lang.Object
  extended by com.jivesoftware.base.stats.element.HourOfDayElementFormat
All Implemented Interfaces:
ElementFormat

public class HourOfDayElementFormat
extends java.lang.Object
implements ElementFormat

Format an hour of the day as a string.


Constructor Summary
HourOfDayElementFormat()
          Creates new HourOfDayElementFormat with the default format
HourOfDayElementFormat(java.lang.String formatString)
          Creates new HourOfDayElementFormat with a specified format
 
Method Summary
 java.lang.String format(Element e)
          Format an element and return a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HourOfDayElementFormat

public HourOfDayElementFormat(java.lang.String formatString)
Creates new HourOfDayElementFormat with a specified format

Parameters:
formatString - A format string as used by java.text.SimpleDateFormat

HourOfDayElementFormat

public HourOfDayElementFormat()
Creates new HourOfDayElementFormat with the default format

Method Detail

format

public java.lang.String format(Element e)
Format an element and return a String. The element is assumed to wrap the HOUR_OF_DAY number returned by Calendar.

Specified by:
format in interface ElementFormat

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.