org.joda.time.convert
Class MockZeroNullIntegerConverter
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final InstantConverter INSTANCE
MockZeroNullIntegerConverter
public MockZeroNullIntegerConverter()
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.