@Test public void testCast() { LngType type = LngType.instance(); Object o = new Long(999); assertEquals(new Long(999L), type.cast(o)); assertTrue(type.cast(o) instanceof Long); }
@Override public Long cast(Object o) throws RuntimeException { return (Long)o; }
LngType extends BaseValueType<Long> { @Override public Long cast(Object o) throws RuntimeException { return (Long)o; } }
LngType extends BaseValueType<Long> { @Override public Long cast(Object o) throws RuntimeException { return (Long)o; } private  LngType(); }
LngType extends BaseValueType<Long> { @Override public Long cast(Object o) throws RuntimeException { return (Long)o; } private  LngType(); @Deprecated() static LngType get(); static LngType instance(); @Override Long parse(String sourceValue); @Override Long cast(Object o); }
LngType extends BaseValueType<Long> { @Override public Long cast(Object o) throws RuntimeException { return (Long)o; } private  LngType(); @Deprecated() static LngType get(); static LngType instance(); @Override Long parse(String sourceValue); @Override Long cast(Object o);  }