@Test public void testSerialization() throws JsonProcessingException { assertEquals("\"" + string + "\"", JsonUtil.serialize(atomString)); assertEquals(integer.toString(), JsonUtil.serialize(atomInteger)); assertEquals(real.toString(), JsonUtil.serialize(atomReal)); assertEquals(bool.toString(), JsonUtil.serialize(atomBoolean)); assertEquals("[\"uuid\",\"" + uuid.getUuid() + "\"]", JsonUtil.serialize(atomUuid)); assertEquals( "[\"named-uuid\",\"" + namedUuid.getUuidName() + "\"]", JsonUtil.serialize(atomNamedUuid) ); }
@Override public String toString() { return value.toString(); }
Atom extends Value { @Override public String toString() { return value.toString(); } }
Atom extends Value { @Override public String toString() { return value.toString(); } Atom(T value); }
Atom extends Value { @Override public String toString() { return value.toString(); } Atom(T value); static Atom<String> string(String value); static Atom<Long> integer(long value); static Atom<Double> real(Double value); static Atom<Boolean> bool(boolean value); static Atom<Uuid> uuid(Uuid value); static Atom<Uuid> uuid(UUID value); static Atom<NamedUuid> namedUuid(NamedUuid value); static Atom<NamedUuid> namedUuid(String value); T getValue(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString(); }
Atom extends Value { @Override public String toString() { return value.toString(); } Atom(T value); static Atom<String> string(String value); static Atom<Long> integer(long value); static Atom<Double> real(Double value); static Atom<Boolean> bool(boolean value); static Atom<Uuid> uuid(Uuid value); static Atom<Uuid> uuid(UUID value); static Atom<NamedUuid> namedUuid(NamedUuid value); static Atom<NamedUuid> namedUuid(String value); T getValue(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }