1 16 package org.joda.time.convert; 17 18 import org.joda.time.Chronology; 19 20 28 class LongConverter extends AbstractConverter 29 implements InstantConverter, PartialConverter, DurationConverter { 30 31 34 static final LongConverter INSTANCE = new LongConverter(); 35 36 39 protected LongConverter() { 40 super(); 41 } 42 43 53 public long getInstantMillis(Object object, Chronology chrono) { 54 return ((Long ) object).longValue(); 55 } 56 57 66 public long getDurationMillis(Object object) { 67 return ((Long ) object).longValue(); 68 } 69 70 76 public Class getSupportedType() { 77 return Long .class; 78 } 79 80 } 81 | Popular Tags |