@Test public void testCastNull() { assertNull(stringType.cast(null)); }
@Override public Object cast(Object obj) { if (obj == null) { return null; } else if (obj instanceof JsonNode) { return ((JsonNode) obj).asText(); } else { return obj.toString(); } }
StringType implements Type, Serializable { @Override public Object cast(Object obj) { if (obj == null) { return null; } else if (obj instanceof JsonNode) { return ((JsonNode) obj).asText(); } else { return obj.toString(); } } }
StringType implements Type, Serializable { @Override public Object cast(Object obj) { if (obj == null) { return null; } else if (obj instanceof JsonNode) { return ((JsonNode) obj).asText(); } else { return obj.toString(); } } private  StringType(); }
StringType implements Type, Serializable { @Override public Object cast(Object obj) { if (obj == null) { return null; } else if (obj instanceof JsonNode) { return ((JsonNode) obj).asText(); } else { return obj.toString(); } } private  StringType(); @Override String getName(); @Override boolean supportsEq(); @Override boolean supportsOrdering(); @Override JsonNode toJson(JsonNodeFactory factory, Object obj); @Override Object fromJson(JsonNode node); @Override Object cast(Object obj); @SuppressWarnings({"rawtypes", "unchecked"}) @Override int compare(Object v1, Object v2); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
StringType implements Type, Serializable { @Override public Object cast(Object obj) { if (obj == null) { return null; } else if (obj instanceof JsonNode) { return ((JsonNode) obj).asText(); } else { return obj.toString(); } } private  StringType(); @Override String getName(); @Override boolean supportsEq(); @Override boolean supportsOrdering(); @Override JsonNode toJson(JsonNodeFactory factory, Object obj); @Override Object fromJson(JsonNode node); @Override Object cast(Object obj); @SuppressWarnings({"rawtypes", "unchecked"}) @Override int compare(Object v1, Object v2); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static final Type TYPE; static final String NAME; }