test_class.declarator: ID_KEY = JsonFactory.newKey("id")
test_class.modifier: private static final
test_class.original_string: private static final JsonKey ID_KEY = JsonFactory.newKey("id");
test_class.type: JsonKey
test_class.var_name: ID_KEY
test_class.declarator: STATE_KEY = JsonFactory.newKey("state")
test_class.modifier: private static final
test_class.original_string: private static final JsonKey STATE_KEY = JsonFactory.newKey("state");
test_class.type: JsonKey
test_class.var_name: STATE_KEY
test_class.declarator: MANUFACTURER_KEY = JsonFactory.newKey("manufacturer")
test_class.modifier: private static final
test_class.original_string: private static final JsonKey MANUFACTURER_KEY = JsonFactory.newKey("manufacturer");
test_class.type: JsonKey
test_class.var_name: MANUFACTURER_KEY
test_class.declarator: NAME_KEY = JsonFactory.newKey("name")
test_class.modifier: private static final
test_class.original_string: private static final JsonKey NAME_KEY = JsonFactory.newKey("name");
test_class.type: JsonKey
test_class.var_name: NAME_KEY
test_class.declarator: COUNTRY_KEY = JsonFactory.newKey("country")
test_class.modifier: private static final
test_class.original_string: private static final JsonKey COUNTRY_KEY = JsonFactory.newKey("country");
test_class.type: JsonKey
test_class.var_name: COUNTRY_KEY
test_class.declarator: ID = JsonFactory.newValue(4223)
test_class.modifier: private static final
test_class.original_string: private static final JsonValue ID = JsonFactory.newValue(4223);
test_class.type: JsonValue
test_class.var_name: ID
test_class.declarator: STATE = JsonFactory.newValue("off")
test_class.modifier: private static final
test_class.original_string: private static final JsonValue STATE = JsonFactory.newValue("off");
test_class.type: JsonValue
test_class.var_name: STATE
test_class.declarator: NAME = JsonFactory.newValue("ACME")
test_class.modifier: private static final
test_class.original_string: private static final JsonValue NAME = JsonFactory.newValue("ACME");
test_class.type: JsonValue
test_class.var_name: NAME
test_class.declarator: COUNTRY = JsonFactory.newValue("Germany")
test_class.modifier: private static final
test_class.original_string: private static final JsonValue COUNTRY = JsonFactory.newValue("Germany");
test_class.type: JsonValue
test_class.var_name: COUNTRY
test_class.declarator: MANUFACTURER = JsonFactory.newObjectBuilder() //
              .set(NAME_KEY, NAME) //
              .set(COUNTRY_KEY, COUNTRY) //
              .build()
test_class.modifier: private static final
test_class.original_string: private static final JsonValue MANUFACTURER = JsonFactory.newObjectBuilder() //
              .set(NAME_KEY, NAME) //
              .set(COUNTRY_KEY, COUNTRY) //
              .build();
test_class.type: JsonValue
test_class.var_name: MANUFACTURER
test_class.declarator: ID_FIELD = JsonFactory.newField(ID_KEY, ID)
test_class.modifier: private static final
test_class.original_string: private static final JsonField ID_FIELD = JsonFactory.newField(ID_KEY, ID);
test_class.type: JsonField
test_class.var_name: ID_FIELD
test_class.declarator: STATE_FIELD = JsonFactory.newField(STATE_KEY, STATE)
test_class.modifier: private static final
test_class.original_string: private static final JsonField STATE_FIELD = JsonFactory.newField(STATE_KEY, STATE);
test_class.type: JsonField
test_class.var_name: STATE_FIELD
test_class.declarator: MANUFACTURER_FIELD = JsonFactory.newField(MANUFACTURER_KEY, MANUFACTURER)
test_class.modifier: private static final
test_class.original_string: private static final JsonField MANUFACTURER_FIELD = JsonFactory.newField(MANUFACTURER_KEY, MANUFACTURER);
test_class.type: JsonField
test_class.var_name: MANUFACTURER_FIELD
test_class.declarator: KNOWN_JSON_OBJECT = JsonFactory.newObjectBuilder() //
              .set(ID_FIELD) //
              .set(STATE_FIELD) //
              .set(MANUFACTURER_FIELD) //
              .build()
test_class.modifier: private static final
test_class.original_string: private static final JsonObject KNOWN_JSON_OBJECT = JsonFactory.newObjectBuilder() //
              .set(ID_FIELD) //
              .set(STATE_FIELD) //
              .set(MANUFACTURER_FIELD) //
              .build();
test_class.type: JsonObject
test_class.var_name: KNOWN_JSON_OBJECT
test_class.declarator: KNOWN_JSON_ARRAY = JsonFactory.newArrayBuilder().add(ID) //
              .add(STATE) //
              .add(NAME) //
              .add(COUNTRY) //
              .build()
test_class.modifier: private static final
test_class.original_string: private static final JsonArray KNOWN_JSON_ARRAY = JsonFactory.newArrayBuilder().add(ID) //
              .add(STATE) //
              .add(NAME) //
              .add(COUNTRY) //
              .build();
test_class.type: JsonArray
test_class.var_name: KNOWN_JSON_ARRAY
test_class.file: json/src/test/java/org/eclipse/ditto/json/JsonCollectorsTest.java
test_class.identifier: JsonCollectorsTest
test_case.body: @Test
      public void collectingFieldKeysOfObjectReturnsExpectedArray() {
          final JsonArray expectedArray = JsonFactory.newArrayBuilder() //
                  .add(JsonFactory.newValue(ID_KEY.toString())) //
                  .add(JsonFactory.newValue(STATE_KEY.toString())) //
                  .add(JsonFactory.newValue(MANUFACTURER_KEY.toString())) //
                  .build();
  
          final JsonArray actualArray = KNOWN_JSON_OBJECT.stream() //
                  .collect(JsonCollectors.fieldKeysToArray());
  
          DittoJsonAssertions.assertThat(actualArray).isEqualTo(expectedArray);
      }
test_case.class_method_signature: JsonCollectorsTest.collectingFieldKeysOfObjectReturnsExpectedArray()
test_case.full_signature: @Test public void collectingFieldKeysOfObjectReturnsExpectedArray()
test_case.identifier: collectingFieldKeysOfObjectReturnsExpectedArray
test_case.invocations: build add add add newArrayBuilder newValue toString newValue toString newValue toString collect stream fieldKeysToArray isEqualTo assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void collectingFieldKeysOfObjectReturnsExpectedArray()
focal_class.file: json/src/main/java/org/eclipse/ditto/json/JsonCollectors.java
focal_class.identifier: JsonCollectors
focal_class.class_method_signature: JsonCollectors.JsonCollectors()
focal_class.full_signature: private  JsonCollectors()
focal_class.identifier: JsonCollectors
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  JsonCollectors()
focal_class.class_method_signature: JsonCollectors.fieldsToObject()
focal_class.full_signature: public static Collector<JsonField, JsonObjectBuilder, JsonObject> fieldsToObject()
focal_class.identifier: fieldsToObject
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Collector<JsonField, JsonObjectBuilder, JsonObject>
focal_class.signature: Collector<JsonField, JsonObjectBuilder, JsonObject> fieldsToObject()
focal_class.class_method_signature: JsonCollectors.objectsToObject()
focal_class.full_signature: public static Collector<JsonObject, JsonObjectBuilder, JsonObject> objectsToObject()
focal_class.identifier: objectsToObject
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Collector<JsonObject, JsonObjectBuilder, JsonObject>
focal_class.signature: Collector<JsonObject, JsonObjectBuilder, JsonObject> objectsToObject()
focal_class.class_method_signature: JsonCollectors.fieldKeysToArray()
focal_class.full_signature: public static Collector<JsonField, JsonArrayBuilder, JsonArray> fieldKeysToArray()
focal_class.identifier: fieldKeysToArray
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Collector<JsonField, JsonArrayBuilder, JsonArray>
focal_class.signature: Collector<JsonField, JsonArrayBuilder, JsonArray> fieldKeysToArray()
focal_class.class_method_signature: JsonCollectors.fieldValuesToArray()
focal_class.full_signature: public static Collector<JsonField, JsonArrayBuilder, JsonArray> fieldValuesToArray()
focal_class.identifier: fieldValuesToArray
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Collector<JsonField, JsonArrayBuilder, JsonArray>
focal_class.signature: Collector<JsonField, JsonArrayBuilder, JsonArray> fieldValuesToArray()
focal_class.class_method_signature: JsonCollectors.valuesToArray()
focal_class.full_signature: public static Collector<JsonValue, JsonArrayBuilder, JsonArray> valuesToArray()
focal_class.identifier: valuesToArray
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Collector<JsonValue, JsonArrayBuilder, JsonArray>
focal_class.signature: Collector<JsonValue, JsonArrayBuilder, JsonArray> valuesToArray()
focal_method.body: public static Collector<JsonField, JsonArrayBuilder, JsonArray> fieldKeysToArray() {
          return Collector.of(JsonFactory::newArrayBuilder, (arrayBuilder, field) -> arrayBuilder.add(field.getKeyName()),
                  JsonArrayBuilder::addAll, JsonArrayBuilder::build);
      }
focal_method.class_method_signature: JsonCollectors.fieldKeysToArray()
focal_method.full_signature: public static Collector<JsonField, JsonArrayBuilder, JsonArray> fieldKeysToArray()
focal_method.identifier: fieldKeysToArray
focal_method.invocations: of add getKeyName
focal_method.modifiers: public static
focal_method.parameters: ()
focal_method.return: Collector<JsonField, JsonArrayBuilder, JsonArray>
focal_method.signature: Collector<JsonField, JsonArrayBuilder, JsonArray> fieldKeysToArray()