@Test public void testCast() { StrType qst = StrType.instance(); Object o = "abc"; assertEquals("abc", qst.cast(o)); assertTrue(qst.cast(o) instanceof String); }
@Override public String cast(Object o) throws RuntimeException { return (String)o; }
StrType extends BaseValueType<String> { @Override public String cast(Object o) throws RuntimeException { return (String)o; } }
StrType extends BaseValueType<String> { @Override public String cast(Object o) throws RuntimeException { return (String)o; } private  StrType(); }
StrType extends BaseValueType<String> { @Override public String cast(Object o) throws RuntimeException { return (String)o; } private  StrType(); static StrType instance(); @Override String parse(String sourceValue); @Override String cast(Object o); }
StrType extends BaseValueType<String> { @Override public String cast(Object o) throws RuntimeException { return (String)o; } private  StrType(); static StrType instance(); @Override String parse(String sourceValue); @Override String cast(Object o);  }