org.joda.time.convert
Class MockZeroNullIntegerConverter

java.lang.Object
  extended by org.joda.time.convert.MockZeroNullIntegerConverter
All Implemented Interfaces:
Converter, InstantConverter

public class MockZeroNullIntegerConverter
extends Object
implements InstantConverter

A basic mock testing class for a converter. This converter returns zero and null for an Integer input.

Author:
Stephen Colebourne

Field Summary
static InstantConverter INSTANCE
           
 
Constructor Summary
MockZeroNullIntegerConverter()
           
 
Method Summary
 Chronology getChronology(Object object, Chronology chrono)
           
 Chronology getChronology(Object object, DateTimeZone zone)
           
 long getInstantMillis(Object object, Chronology chrono)
           
 long getInstantMillis(Object object, Chronology chrono, DateTimeFormatter parser)
           
 Class getSupportedType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final InstantConverter INSTANCE
Constructor Detail

MockZeroNullIntegerConverter

public MockZeroNullIntegerConverter()
Method Detail

getInstantMillis

public long getInstantMillis(Object object,
                             Chronology chrono)
Specified by:
getInstantMillis in interface InstantConverter

getInstantMillis

public long getInstantMillis(Object object,
                             Chronology chrono,
                             DateTimeFormatter parser)

getChronology

public Chronology getChronology(Object object,
                                DateTimeZone zone)
Specified by:
getChronology in interface InstantConverter

getChronology

public Chronology getChronology(Object object,
                                Chronology chrono)
Specified by:
getChronology in interface InstantConverter

getSupportedType

public Class getSupportedType()
Specified by:
getSupportedType in interface Converter


Copyright © 2002-2013 Joda.org. All Rights Reserved.