test_class.declarator: KNOWN_THINGS =
              Collections.singletonList(ThingsModelFactory.newThingBuilder().setId(TestConstants.Thing.THING_ID).build())
test_class.modifier: private static final
test_class.original_string: private static final List<Thing> KNOWN_THINGS =
              Collections.singletonList(ThingsModelFactory.newThingBuilder().setId(TestConstants.Thing.THING_ID).build());
test_class.type: List<Thing>
test_class.var_name: KNOWN_THINGS
test_class.declarator: KNOWN_JSON = JsonFactory.newObjectBuilder()
              .set(SudoCommandResponse.JsonFields.TYPE, SudoRetrieveThingsResponse.TYPE)
              .set(SudoCommandResponse.JsonFields.STATUS, HttpStatusCode.OK.toInt())
  
              .set(SudoRetrieveThingsResponse.JSON_THINGS_PLAIN_JSON,
                      KNOWN_THINGS.stream()
                              .map(thing -> thing.toJson(FieldType.notHidden()))
                              .collect(JsonCollectors.valuesToArray()).toString())
              .build()
test_class.modifier: private static final
test_class.original_string: private static final JsonObject KNOWN_JSON = JsonFactory.newObjectBuilder()
              .set(SudoCommandResponse.JsonFields.TYPE, SudoRetrieveThingsResponse.TYPE)
              .set(SudoCommandResponse.JsonFields.STATUS, HttpStatusCode.OK.toInt())
  
              .set(SudoRetrieveThingsResponse.JSON_THINGS_PLAIN_JSON,
                      KNOWN_THINGS.stream()
                              .map(thing -> thing.toJson(FieldType.notHidden()))
                              .collect(JsonCollectors.valuesToArray()).toString())
              .build();
test_class.type: JsonObject
test_class.var_name: KNOWN_JSON
test_class.declarator: EMPTY_DITTO_HEADERS = DittoHeaders.empty()
test_class.modifier: private static final
test_class.original_string: private static final DittoHeaders EMPTY_DITTO_HEADERS = DittoHeaders.empty();
test_class.type: DittoHeaders
test_class.var_name: EMPTY_DITTO_HEADERS
test_class.file: services/models/things/src/test/java/org/eclipse/ditto/services/models/things/commands/sudo/SudoRetrieveThingsResponseTest.java
test_class.identifier: SudoRetrieveThingsResponseTest
test_case.body: @Test
      public void toJsonReturnsExpectedJson() {
          final SudoRetrieveThingsResponse underTest = SudoRetrieveThingsResponse.of(KNOWN_THINGS, FieldType.notHidden(),
                  EMPTY_DITTO_HEADERS);
          final JsonObject actualJson = underTest.toJson(FieldType.regularOrSpecial());
  
          assertThat(actualJson).isEqualTo(KNOWN_JSON);
      }
test_case.class_method_signature: SudoRetrieveThingsResponseTest.toJsonReturnsExpectedJson()
test_case.full_signature: @Test public void toJsonReturnsExpectedJson()
test_case.identifier: toJsonReturnsExpectedJson
test_case.invocations: of notHidden toJson regularOrSpecial isEqualTo assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void toJsonReturnsExpectedJson()
focal_class.declarator: NAME = "sudoRetrieveThingsResponse"
focal_class.modifier: public static final
focal_class.original_string: public static final String NAME = "sudoRetrieveThingsResponse";
focal_class.type: String
focal_class.var_name: NAME
focal_class.declarator: TYPE = TYPE_PREFIX + NAME
focal_class.modifier: public static final
focal_class.original_string: public static final String TYPE = TYPE_PREFIX + NAME;
focal_class.type: String
focal_class.var_name: TYPE
focal_class.declarator: JSON_THINGS =
              JsonFactory.newJsonArrayFieldDefinition("payload/things", FieldType.REGULAR, JsonSchemaVersion.V_1,
                      JsonSchemaVersion.V_2)
focal_class.modifier: static final
focal_class.original_string: static final JsonFieldDefinition<JsonArray> JSON_THINGS =
              JsonFactory.newJsonArrayFieldDefinition("payload/things", FieldType.REGULAR, JsonSchemaVersion.V_1,
                      JsonSchemaVersion.V_2);
focal_class.type: JsonFieldDefinition<JsonArray>
focal_class.var_name: JSON_THINGS
focal_class.declarator: JSON_THINGS_PLAIN_JSON =
              JsonFactory.newStringFieldDefinition("payload/thingsPlainJson", FieldType.REGULAR, JsonSchemaVersion.V_1,
                      JsonSchemaVersion.V_2)
focal_class.modifier: static final
focal_class.original_string: static final JsonFieldDefinition<String> JSON_THINGS_PLAIN_JSON =
              JsonFactory.newStringFieldDefinition("payload/thingsPlainJson", FieldType.REGULAR, JsonSchemaVersion.V_1,
                      JsonSchemaVersion.V_2);
focal_class.type: JsonFieldDefinition<String>
focal_class.var_name: JSON_THINGS_PLAIN_JSON
focal_class.declarator: thingsPlainJson
focal_class.modifier: private final
focal_class.original_string: private final String thingsPlainJson;
focal_class.type: String
focal_class.var_name: thingsPlainJson
focal_class.declarator: things
focal_class.modifier: @Nullable private
focal_class.original_string: @Nullable private JsonArray things;
focal_class.type: JsonArray
focal_class.var_name: things
focal_class.file: services/models/things/src/main/java/org/eclipse/ditto/services/models/things/commands/sudo/SudoRetrieveThingsResponse.java
focal_class.identifier: SudoRetrieveThingsResponse
focal_class.interfaces: implements
          SudoCommandResponse<SudoRetrieveThingsResponse>
focal_class.class_method_signature: SudoRetrieveThingsResponse.SudoRetrieveThingsResponse(final HttpStatusCode statusCode, @Nullable final JsonArray things,
              final String thingsPlainJson, final DittoHeaders dittoHeaders)
focal_class.full_signature: private  SudoRetrieveThingsResponse(final HttpStatusCode statusCode, @Nullable final JsonArray things,
              final String thingsPlainJson, final DittoHeaders dittoHeaders)
focal_class.identifier: SudoRetrieveThingsResponse
focal_class.modifiers: private
focal_class.parameters: (final HttpStatusCode statusCode, @Nullable final JsonArray things,
              final String thingsPlainJson, final DittoHeaders dittoHeaders)
focal_class.signature:  SudoRetrieveThingsResponse(final HttpStatusCode statusCode, @Nullable final JsonArray things,
              final String thingsPlainJson, final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SudoRetrieveThingsResponse.of(final String thingsPlainJson, final DittoHeaders dittoHeaders)
focal_class.full_signature: public static SudoRetrieveThingsResponse of(final String thingsPlainJson, final DittoHeaders dittoHeaders)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final String thingsPlainJson, final DittoHeaders dittoHeaders)
focal_class.return: SudoRetrieveThingsResponse
focal_class.signature: SudoRetrieveThingsResponse of(final String thingsPlainJson, final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SudoRetrieveThingsResponse.of(final List<String> thingsPlainJson, final DittoHeaders dittoHeaders)
focal_class.full_signature: public static SudoRetrieveThingsResponse of(final List<String> thingsPlainJson, final DittoHeaders dittoHeaders)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final List<String> thingsPlainJson, final DittoHeaders dittoHeaders)
focal_class.return: SudoRetrieveThingsResponse
focal_class.signature: SudoRetrieveThingsResponse of(final List<String> thingsPlainJson, final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SudoRetrieveThingsResponse.of(final JsonArray things, final DittoHeaders dittoHeaders)
focal_class.full_signature: public static SudoRetrieveThingsResponse of(final JsonArray things, final DittoHeaders dittoHeaders)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final JsonArray things, final DittoHeaders dittoHeaders)
focal_class.return: SudoRetrieveThingsResponse
focal_class.signature: SudoRetrieveThingsResponse of(final JsonArray things, final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SudoRetrieveThingsResponse.of(final List<Thing> things, final Predicate<JsonField> predicate,
              final DittoHeaders dittoHeaders)
focal_class.full_signature: public static SudoRetrieveThingsResponse of(final List<Thing> things, final Predicate<JsonField> predicate,
              final DittoHeaders dittoHeaders)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final List<Thing> things, final Predicate<JsonField> predicate,
              final DittoHeaders dittoHeaders)
focal_class.return: SudoRetrieveThingsResponse
focal_class.signature: SudoRetrieveThingsResponse of(final List<Thing> things, final Predicate<JsonField> predicate,
              final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SudoRetrieveThingsResponse.of(final List<Thing> things, final JsonFieldSelector fieldSelector,
              final Predicate<JsonField> predicate, final DittoHeaders dittoHeaders)
focal_class.full_signature: public static SudoRetrieveThingsResponse of(final List<Thing> things, final JsonFieldSelector fieldSelector,
              final Predicate<JsonField> predicate, final DittoHeaders dittoHeaders)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final List<Thing> things, final JsonFieldSelector fieldSelector,
              final Predicate<JsonField> predicate, final DittoHeaders dittoHeaders)
focal_class.return: SudoRetrieveThingsResponse
focal_class.signature: SudoRetrieveThingsResponse of(final List<Thing> things, final JsonFieldSelector fieldSelector,
              final Predicate<JsonField> predicate, final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SudoRetrieveThingsResponse.fromJson(final String jsonString, final DittoHeaders dittoHeaders)
focal_class.full_signature: public static SudoRetrieveThingsResponse fromJson(final String jsonString, final DittoHeaders dittoHeaders)
focal_class.identifier: fromJson
focal_class.modifiers: public static
focal_class.parameters: (final String jsonString, final DittoHeaders dittoHeaders)
focal_class.return: SudoRetrieveThingsResponse
focal_class.signature: SudoRetrieveThingsResponse fromJson(final String jsonString, final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SudoRetrieveThingsResponse.fromJson(final JsonObject jsonObject,
              final DittoHeaders dittoHeaders)
focal_class.full_signature: public static SudoRetrieveThingsResponse fromJson(final JsonObject jsonObject,
              final DittoHeaders dittoHeaders)
focal_class.identifier: fromJson
focal_class.modifiers: public static
focal_class.parameters: (final JsonObject jsonObject,
              final DittoHeaders dittoHeaders)
focal_class.return: SudoRetrieveThingsResponse
focal_class.signature: SudoRetrieveThingsResponse fromJson(final JsonObject jsonObject,
              final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SudoRetrieveThingsResponse.getThings()
focal_class.full_signature: public List<Thing> getThings()
focal_class.identifier: getThings
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<Thing>
focal_class.signature: List<Thing> getThings()
focal_class.class_method_signature: SudoRetrieveThingsResponse.getThingStream(JsonArray thingsArray)
focal_class.full_signature: private Stream<Thing> getThingStream(JsonArray thingsArray)
focal_class.identifier: getThingStream
focal_class.modifiers: private
focal_class.parameters: (JsonArray thingsArray)
focal_class.return: Stream<Thing>
focal_class.signature: Stream<Thing> getThingStream(JsonArray thingsArray)
focal_class.class_method_signature: SudoRetrieveThingsResponse.lazyLoadThingsJsonArray()
focal_class.full_signature: private JsonArray lazyLoadThingsJsonArray()
focal_class.identifier: lazyLoadThingsJsonArray
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: JsonArray
focal_class.signature: JsonArray lazyLoadThingsJsonArray()
focal_class.class_method_signature: SudoRetrieveThingsResponse.getEntity(final JsonSchemaVersion schemaVersion)
focal_class.full_signature: @Override public JsonValue getEntity(final JsonSchemaVersion schemaVersion)
focal_class.identifier: getEntity
focal_class.modifiers: @Override public
focal_class.parameters: (final JsonSchemaVersion schemaVersion)
focal_class.return: JsonValue
focal_class.signature: JsonValue getEntity(final JsonSchemaVersion schemaVersion)
focal_class.class_method_signature: SudoRetrieveThingsResponse.setEntity(final JsonValue entity)
focal_class.full_signature: @Override public SudoRetrieveThingsResponse setEntity(final JsonValue entity)
focal_class.identifier: setEntity
focal_class.modifiers: @Override public
focal_class.parameters: (final JsonValue entity)
focal_class.return: SudoRetrieveThingsResponse
focal_class.signature: SudoRetrieveThingsResponse setEntity(final JsonValue entity)
focal_class.class_method_signature: SudoRetrieveThingsResponse.setDittoHeaders(final DittoHeaders dittoHeaders)
focal_class.full_signature: @Override public SudoRetrieveThingsResponse setDittoHeaders(final DittoHeaders dittoHeaders)
focal_class.identifier: setDittoHeaders
focal_class.modifiers: @Override public
focal_class.parameters: (final DittoHeaders dittoHeaders)
focal_class.return: SudoRetrieveThingsResponse
focal_class.signature: SudoRetrieveThingsResponse setDittoHeaders(final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SudoRetrieveThingsResponse.appendPayload(final JsonObjectBuilder jsonObjectBuilder, final JsonSchemaVersion schemaVersion,
              final Predicate<JsonField> thePredicate)
focal_class.full_signature: @Override protected void appendPayload(final JsonObjectBuilder jsonObjectBuilder, final JsonSchemaVersion schemaVersion,
              final Predicate<JsonField> thePredicate)
focal_class.identifier: appendPayload
focal_class.modifiers: @Override protected
focal_class.parameters: (final JsonObjectBuilder jsonObjectBuilder, final JsonSchemaVersion schemaVersion,
              final Predicate<JsonField> thePredicate)
focal_class.return: void
focal_class.signature: void appendPayload(final JsonObjectBuilder jsonObjectBuilder, final JsonSchemaVersion schemaVersion,
              final Predicate<JsonField> thePredicate)
focal_class.class_method_signature: SudoRetrieveThingsResponse.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: SudoRetrieveThingsResponse.equals(@Nullable final Object o)
focal_class.full_signature: @SuppressWarnings({"squid:MethodCyclomaticComplexity", "squid:S1067", "pmd:SimplifyConditional"}) @Override public boolean equals(@Nullable final Object o)
focal_class.identifier: equals
focal_class.modifiers: @SuppressWarnings({"squid:MethodCyclomaticComplexity", "squid:S1067", "pmd:SimplifyConditional"}) @Override public
focal_class.parameters: (@Nullable final Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(@Nullable final Object o)
focal_class.class_method_signature: SudoRetrieveThingsResponse.canEqual(@Nullable final Object other)
focal_class.full_signature: @Override protected boolean canEqual(@Nullable final Object other)
focal_class.identifier: canEqual
focal_class.modifiers: @Override protected
focal_class.parameters: (@Nullable final Object other)
focal_class.return: boolean
focal_class.signature: boolean canEqual(@Nullable final Object other)
focal_class.class_method_signature: SudoRetrieveThingsResponse.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.superclass: extends AbstractCommandResponse<SudoRetrieveThingsResponse>
focal_method.body: public static SudoRetrieveThingsResponse of(final String thingsPlainJson, final DittoHeaders dittoHeaders) {
          return new SudoRetrieveThingsResponse(HttpStatusCode.OK, null, thingsPlainJson, dittoHeaders);
      }
focal_method.class_method_signature: SudoRetrieveThingsResponse.of(final String thingsPlainJson, final DittoHeaders dittoHeaders)
focal_method.full_signature: public static SudoRetrieveThingsResponse of(final String thingsPlainJson, final DittoHeaders dittoHeaders)
focal_method.identifier: of
focal_method.modifiers: public static
focal_method.parameters: (final String thingsPlainJson, final DittoHeaders dittoHeaders)
focal_method.return: SudoRetrieveThingsResponse
focal_method.signature: SudoRetrieveThingsResponse of(final String thingsPlainJson, final DittoHeaders dittoHeaders)