ImmutableJsonObjectNull extends AbstractJsonValue implements JsonObject, JsonNull { public static ImmutableJsonObjectNull getInstance() { ImmutableJsonObjectNull result = instance; if (null == result) { result = new ImmutableJsonObjectNull(); instance = result; } return result; } private  ImmutableJsonObjectNull(); static ImmutableJsonObjectNull getInstance(); @Override boolean isNull(); @Override boolean isObject(); @Override ImmutableJsonObjectNull asObject(); @Override ImmutableJsonObjectNull setValue(final CharSequence key, final int value); @Override ImmutableJsonObjectNull setValue(final CharSequence key, final long value); @Override ImmutableJsonObjectNull setValue(final CharSequence key, final double value); @Override ImmutableJsonObjectNull setValue(final CharSequence key, final boolean value); @Override ImmutableJsonObjectNull setValue(final CharSequence key, final String value); @Override ImmutableJsonObjectNull setValue(final CharSequence key, final JsonValue value); @Override ImmutableJsonObjectNull set(final JsonFieldDefinition<T> fieldDefinition, @Nullable final T value); @Override ImmutableJsonObjectNull set(final JsonField field); @Override ImmutableJsonObjectNull setAll(final Iterable<JsonField> jsonFields); @Override boolean contains(final CharSequence key); @Override ImmutableJsonObjectNull get(final JsonPointer pointer); @Override ImmutableJsonObjectNull get(final JsonFieldDefinition fieldDefinition); @Override Optional<JsonValue> getValue(final CharSequence key); @Override Optional<T> getValue(final JsonFieldDefinition<T> fieldDefinition); @Override T getValueOrThrow(final JsonFieldDefinition<T> fieldDefinition); @Override ImmutableJsonObjectNull get(final JsonFieldSelector fieldSelector); @Override ImmutableJsonObjectNull remove(final CharSequence key); @Override List<JsonKey> getKeys(); @Override Optional<JsonField> getField(final CharSequence key); @Override Iterator<JsonField> iterator(); @Override Stream<JsonField> stream(); @Override boolean isEmpty(); @Override int getSize(); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString();  }
@Test public void testHashCodeAndEquals() { final ImmutableJsonObjectNull green = ImmutableJsonObjectNull.getInstance(); final ImmutableJsonObjectNull blue = ImmutableJsonObjectNull.getInstance(); assertThat(green).isEqualTo(green); assertThat(green).isEqualTo(blue); assertThat(blue).isEqualTo(ImmutableJsonArrayNull.getInstance()); }