org.openstreetmap.osmosis.core.domain.common
Class SimpleTimestampContainer

java.lang.Object
  extended by org.openstreetmap.osmosis.core.domain.common.SimpleTimestampContainer
All Implemented Interfaces:
TimestampContainer

public class SimpleTimestampContainer
extends java.lang.Object
implements TimestampContainer

A timestamp container implementation that holds a standard date object.

Author:
Brett Henderson

Constructor Summary
SimpleTimestampContainer(java.util.Date timestamp)
          Creates a new instance.
 
Method Summary
 java.lang.String getFormattedTimestamp(TimestampFormat timestampFormat)
          Gets the timestamp in a string format.
 java.util.Date getTimestamp()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTimestampContainer

public SimpleTimestampContainer(java.util.Date timestamp)
Creates a new instance.

Parameters:
timestamp - The timestamp to be managed.
Method Detail

getFormattedTimestamp

public java.lang.String getFormattedTimestamp(TimestampFormat timestampFormat)
Gets the timestamp in a string format.

Specified by:
getFormattedTimestamp in interface TimestampContainer
Parameters:
timestampFormat - The formatter to use for formatting the timestamp into a string.
Returns:
The timestamp string.

getTimestamp

public java.util.Date getTimestamp()

Specified by:
getTimestamp in interface TimestampContainer
Returns:
The timestamp.