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