1 16 package org.joda.time.convert; 17 18 import org.joda.time.Chronology; 19 import org.joda.time.DateTimeZone; 20 import org.joda.time.format.DateTimeFormatter; 21 22 28 public class MockZeroNullIntegerConverter implements InstantConverter { 29 30 public static final InstantConverter INSTANCE = new MockZeroNullIntegerConverter(); 31 32 public long getInstantMillis(Object object, Chronology chrono) { 33 return 0; 34 } 35 36 public long getInstantMillis(Object object, Chronology chrono, DateTimeFormatter parser) { 37 return 0; 38 } 39 40 public Chronology getChronology(Object object, DateTimeZone zone) { 41 return null; 42 } 43 44 public Chronology getChronology(Object object, Chronology chrono) { 45 return null; 46 } 47 48 public Class getSupportedType() { 49 return Integer .class; 50 } 51 } 52 | Popular Tags |