@Test public void serializesAlphabetically() { NodeMapper mapper = new NodeMapper(); ObjectNode result = mapper.serialize(new Foo()).expectObjectNode(); Collection<String> keys = result.getStringMap().keySet(); assertThat(keys, contains("bar", "baz")); }
public Node serialize(Object object) { return serialize(object, Collections.newSetFromMap(new IdentityHashMap<>())); }
NodeMapper { public Node serialize(Object object) { return serialize(object, Collections.newSetFromMap(new IdentityHashMap<>())); } }
NodeMapper { public Node serialize(Object object) { return serialize(object, Collections.newSetFromMap(new IdentityHashMap<>())); }  }
NodeMapper { public Node serialize(Object object) { return serialize(object, Collections.newSetFromMap(new IdentityHashMap<>())); }  void setSerializeNullValues(boolean serializeNullValues); boolean getSerializeNullValues(); void setWhenMissingSetter(WhenMissing whenMissing); WhenMissing getWhenMissingSetter(); void disableToNodeForClass(Class type); void enableToNodeForClass(Class type); Set<Class> getDisableToNode(); void disableFromNodeForClass(Class type); void enableFromNodeForClass(Class type); Set<Class> getDisableFromNode(); boolean getOmitEmptyValues(); void setOmitEmptyValues(boolean omitEmptyValues); Node serialize(Object object); T deserialize(Node value, Class<T> into); T deserializeInto(Node value, T objectToMutate); @SuppressWarnings("unchecked") V deserializeCollection(
            Node value,
            Class<T> into,
            Class<U> members
    ); @SuppressWarnings("unchecked") V deserializeMap(
            Node value, Class<T> into,
            Class<U> members
    ); }
NodeMapper { public Node serialize(Object object) { return serialize(object, Collections.newSetFromMap(new IdentityHashMap<>())); }  void setSerializeNullValues(boolean serializeNullValues); boolean getSerializeNullValues(); void setWhenMissingSetter(WhenMissing whenMissing); WhenMissing getWhenMissingSetter(); void disableToNodeForClass(Class type); void enableToNodeForClass(Class type); Set<Class> getDisableToNode(); void disableFromNodeForClass(Class type); void enableFromNodeForClass(Class type); Set<Class> getDisableFromNode(); boolean getOmitEmptyValues(); void setOmitEmptyValues(boolean omitEmptyValues); Node serialize(Object object); T deserialize(Node value, Class<T> into); T deserializeInto(Node value, T objectToMutate); @SuppressWarnings("unchecked") V deserializeCollection(
            Node value,
            Class<T> into,
            Class<U> members
    ); @SuppressWarnings("unchecked") V deserializeMap(
            Node value, Class<T> into,
            Class<U> members
    );  }