/** * A sensible definition of {@link #toString} in terms of the {@code iterator} method of {@link * #entrySet}. If you override {@link #entrySet}, you may wish to override {@link #toString} to * forward to this implementation. * * @since 7.0 */ protected String standardToString() { return Maps.toStringImpl(this); } }
@Override public String toString() { return Maps.toStringImpl(this); }
/** * A sensible definition of {@link #toString} in terms of the {@code iterator} method of {@link * #entrySet}. If you override {@link #entrySet}, you may wish to override {@link #toString} to * forward to this implementation. * * @since 7.0 */ protected String standardToString() { return Maps.toStringImpl(this); } }
@Override public String toString() { return Maps.toStringImpl(this); }
/** * A sensible definition of {@link #toString} in terms of the {@code iterator} method of {@link * #entrySet}. If you override {@link #entrySet}, you may wish to override {@link #toString} to * forward to this implementation. * * @since 7.0 */ protected String standardToString() { return Maps.toStringImpl(this); } }
@Override public String toString() { return Maps.toStringImpl(this); }
public void testToStringImplWithNullValues() throws Exception { Map<String, String> hashmap = Maps.newHashMap(); hashmap.put("foo", "bar"); hashmap.put("baz", null); assertEquals(hashmap.toString(), Maps.toStringImpl(hashmap)); }
public void testToStringImplWithNullKeys() throws Exception { Map<String, String> hashmap = Maps.newHashMap(); hashmap.put("foo", "bar"); hashmap.put(null, "baz"); assertEquals(hashmap.toString(), Maps.toStringImpl(hashmap)); }
/** * A sensible definition of {@link #toString} in terms of the {@code iterator} * method of {@link #entrySet}. If you override {@link #entrySet}, you may * wish to override {@link #toString} to forward to this implementation. * * @since 7.0 */ protected String standardToString() { return Maps.toStringImpl(this); } }
/** * A sensible definition of {@link #toString} in terms of the {@code iterator} * method of {@link #entrySet}. If you override {@link #entrySet}, you may * wish to override {@link #toString} to forward to this implementation. * * @since 7.0 */ protected String standardToString() { return Maps.toStringImpl(this); } }
/** * A sensible definition of {@link #toString} in terms of the {@code iterator} * method of {@link #entrySet}. If you override {@link #entrySet}, you may * wish to override {@link #toString} to forward to this implementation. * * @since 7.0 */ protected String standardToString() { return Maps.toStringImpl(this); } }
/** * A sensible definition of {@link #toString} in terms of the {@code iterator} * method of {@link #entrySet}. If you override {@link #entrySet}, you may * wish to override {@link #toString} to forward to this implementation. * * @since 7.0 */ protected String standardToString() { return Maps.toStringImpl(this); } }
/** * A sensible definition of {@link #toString} in terms of the {@code iterator} * method of {@link #entrySet}. If you override {@link #entrySet}, you may * wish to override {@link #toString} to forward to this implementation. * * @since 7.0 */ protected String standardToString() { return Maps.toStringImpl(this); } }
/** * A sensible definition of {@link #toString} in terms of the {@code iterator} method of {@link * #entrySet}. If you override {@link #entrySet}, you may wish to override {@link #toString} to * forward to this implementation. * * @since 7.0 */ protected String standardToString() { return Maps.toStringImpl(this); } }
/** * A sensible definition of {@link #toString} in terms of the {@code iterator} * method of {@link #entrySet}. If you override {@link #entrySet}, you may * wish to override {@link #toString} to forward to this implementation. * * @since 7.0 */ protected String standardToString() { return Maps.toStringImpl(this); } }
/** * A sensible definition of {@link #toString} in terms of the {@code iterator} * method of {@link #entrySet}. If you override {@link #entrySet}, you may * wish to override {@link #toString} to forward to this implementation. * * @since 7.0 */ protected String standardToString() { return Maps.toStringImpl(this); } }
/** * A sensible definition of {@link #toString} in terms of the {@code iterator} * method of {@link #entrySet}. If you override {@link #entrySet}, you may * wish to override {@link #toString} to forward to this implementation. * * @since 7.0 */ protected String standardToString() { return Maps.toStringImpl(this); } }
/** * A sensible definition of {@link #toString} in terms of the {@code iterator} * method of {@link #entrySet}. If you override {@link #entrySet}, you may * wish to override {@link #toString} to forward to this implementation. * * @since 7.0 */ @Beta protected String standardToString() { return Maps.toStringImpl(this); } }
/** * A sensible definition of {@link #toString} in terms of the {@code iterator} * method of {@link #entrySet}. If you override {@link #entrySet}, you may * wish to override {@link #toString} to forward to this implementation. * * @since 7 */ @Beta protected String standardToString() { return Maps.toStringImpl(this); } }
public void testToStringImplWithNullKeys() throws Exception { Map<String, String> hashmap = Maps.newHashMap(); hashmap.put("foo", "bar"); hashmap.put(null, "baz"); assertEquals(hashmap.toString(), Maps.toStringImpl(hashmap)); }