@Test public void testToJson() { JsonNodeFactory jsonNodeFactory = new JsonNodeFactory(true); JsonNode jsonNode = bigIntegerType.toJson(jsonNodeFactory, BigInteger.ZERO); assertTrue(new BigInteger(jsonNode.asText()).equals(BigInteger.ZERO)); }
@Override public JsonNode toJson(JsonNodeFactory factory, Object obj) { return factory.numberNode((BigInteger) cast(obj)); }
BigIntegerType implements Type, Serializable { @Override public JsonNode toJson(JsonNodeFactory factory, Object obj) { return factory.numberNode((BigInteger) cast(obj)); } }
BigIntegerType implements Type, Serializable { @Override public JsonNode toJson(JsonNodeFactory factory, Object obj) { return factory.numberNode((BigInteger) cast(obj)); } private  BigIntegerType(); }
BigIntegerType implements Type, Serializable { @Override public JsonNode toJson(JsonNodeFactory factory, Object obj) { return factory.numberNode((BigInteger) cast(obj)); } private  BigIntegerType(); @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({"unchecked", "rawtypes"}) @Override int compare(Object v1, Object v2); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
BigIntegerType implements Type, Serializable { @Override public JsonNode toJson(JsonNodeFactory factory, Object obj) { return factory.numberNode((BigInteger) cast(obj)); } private  BigIntegerType(); @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({"unchecked", "rawtypes"}) @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; }