test_class.declarator: CORRELATION_ID = "a-correlation-id"
test_class.modifier: private static final
test_class.original_string: private static final String CORRELATION_ID = "a-correlation-id";
test_class.type: String
test_class.var_name: CORRELATION_ID
test_class.declarator: TIMESTAMP = Instant.now()
test_class.modifier: private static final
test_class.original_string: private static final Instant TIMESTAMP = Instant.now();
test_class.type: Instant
test_class.var_name: TIMESTAMP
test_class.declarator: CATEGORY = LogCategory.SOURCE
test_class.modifier: private static final
test_class.original_string: private static final LogCategory CATEGORY = LogCategory.SOURCE;
test_class.type: LogCategory
test_class.var_name: CATEGORY
test_class.declarator: TYPE = LogType.CONSUMED
test_class.modifier: private static final
test_class.original_string: private static final LogType TYPE = LogType.CONSUMED;
test_class.type: LogType
test_class.var_name: TYPE
test_class.declarator: MESSAGE = "Consumed the best transformation message in my life."
test_class.modifier: private static final
test_class.original_string: private static final String MESSAGE = "Consumed the best transformation message in my life.";
test_class.type: String
test_class.var_name: MESSAGE
test_class.declarator: LEVEL = LogLevel.SUCCESS
test_class.modifier: private static final
test_class.original_string: private static final LogLevel LEVEL = LogLevel.SUCCESS;
test_class.type: LogLevel
test_class.var_name: LEVEL
test_class.declarator: ADDRESS = "an/address"
test_class.modifier: private static final
test_class.original_string: private static final String ADDRESS = "an/address";
test_class.type: String
test_class.var_name: ADDRESS
test_class.declarator: THING_ID = ThingId.of("org.eclipse.ditto.poke:138")
test_class.modifier: private static final
test_class.original_string: private static final ThingId THING_ID = ThingId.of("org.eclipse.ditto.poke:138");
test_class.type: ThingId
test_class.var_name: THING_ID
test_class.declarator: LOG_ENTRY = ImmutableLogEntry.getBuilder(CORRELATION_ID, TIMESTAMP, CATEGORY, TYPE, LEVEL,
              MESSAGE, ADDRESS, THING_ID)
              .build()
test_class.modifier: private static final
test_class.original_string: private static final LogEntry LOG_ENTRY = ImmutableLogEntry.getBuilder(CORRELATION_ID, TIMESTAMP, CATEGORY, TYPE, LEVEL,
              MESSAGE, ADDRESS, THING_ID)
              .build();
test_class.type: LogEntry
test_class.var_name: LOG_ENTRY
test_class.declarator: LOG_ENTRY_JSON = getLogEntryJson()
test_class.modifier: private static final
test_class.original_string: private static final JsonObject LOG_ENTRY_JSON = getLogEntryJson();
test_class.type: JsonObject
test_class.var_name: LOG_ENTRY_JSON
test_class.file: model/connectivity/src/test/java/org/eclipse/ditto/model/connectivity/ImmutableLogEntryTest.java
test_class.identifier: ImmutableLogEntryTest
test_case.body: @Test
      public void fromJsonWithIllegalDate() {
          final JsonObject json = LOG_ENTRY_JSON.set(LogEntry.JsonFields.TIMESTAMP, "not-a-date");
          assertThatExceptionOfType(JsonParseException.class)
                  .isThrownBy(() -> ImmutableLogEntry.fromJson(json))
                  .withMessage("The JSON object's field <%s> is not in ISO-8601 format as expected!",
                          LogEntry.JsonFields.TIMESTAMP.getPointer());
      }
test_case.class_method_signature: ImmutableLogEntryTest.fromJsonWithIllegalDate()
test_case.full_signature: @Test public void fromJsonWithIllegalDate()
test_case.identifier: fromJsonWithIllegalDate
test_case.invocations: set withMessage isThrownBy assertThatExceptionOfType fromJson getPointer
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void fromJsonWithIllegalDate()
focal_class.declarator: correlationId
focal_class.modifier: private final
focal_class.original_string: private final String correlationId;
focal_class.type: String
focal_class.var_name: correlationId
focal_class.declarator: timestamp
focal_class.modifier: private final
focal_class.original_string: private final Instant timestamp;
focal_class.type: Instant
focal_class.var_name: timestamp
focal_class.declarator: logCategory
focal_class.modifier: private final
focal_class.original_string: private final LogCategory logCategory;
focal_class.type: LogCategory
focal_class.var_name: logCategory
focal_class.declarator: logType
focal_class.modifier: private final
focal_class.original_string: private final LogType logType;
focal_class.type: LogType
focal_class.var_name: logType
focal_class.declarator: logLevel
focal_class.modifier: private final
focal_class.original_string: private final LogLevel logLevel;
focal_class.type: LogLevel
focal_class.var_name: logLevel
focal_class.declarator: message
focal_class.modifier: private final
focal_class.original_string: private final String message;
focal_class.type: String
focal_class.var_name: message
focal_class.declarator: address
focal_class.modifier: @Nullable private final
focal_class.original_string: @Nullable private final String address;
focal_class.type: String
focal_class.var_name: address
focal_class.declarator: thingId
focal_class.modifier: @Nullable private final
focal_class.original_string: @Nullable private final ThingId thingId;
focal_class.type: ThingId
focal_class.var_name: thingId
focal_class.file: model/connectivity/src/main/java/org/eclipse/ditto/model/connectivity/ImmutableLogEntry.java
focal_class.identifier: ImmutableLogEntry
focal_class.interfaces: implements LogEntry
focal_class.class_method_signature: ImmutableLogEntry.ImmutableLogEntry(final Builder builder)
focal_class.full_signature: private  ImmutableLogEntry(final Builder builder)
focal_class.identifier: ImmutableLogEntry
focal_class.modifiers: private
focal_class.parameters: (final Builder builder)
focal_class.signature:  ImmutableLogEntry(final Builder builder)
focal_class.class_method_signature: ImmutableLogEntry.getBuilder(final String correlationId, final Instant timestamp, final LogCategory logCategory,
              final LogType logType, final LogLevel logLevel, final String message)
focal_class.full_signature: public static LogEntryBuilder getBuilder(final String correlationId, final Instant timestamp, final LogCategory logCategory,
              final LogType logType, final LogLevel logLevel, final String message)
focal_class.identifier: getBuilder
focal_class.modifiers: public static
focal_class.parameters: (final String correlationId, final Instant timestamp, final LogCategory logCategory,
              final LogType logType, final LogLevel logLevel, final String message)
focal_class.return: LogEntryBuilder
focal_class.signature: LogEntryBuilder getBuilder(final String correlationId, final Instant timestamp, final LogCategory logCategory,
              final LogType logType, final LogLevel logLevel, final String message)
focal_class.class_method_signature: ImmutableLogEntry.getBuilder(final String correlationId, final Instant timestamp, final LogCategory logCategory,
              final LogType logType, final LogLevel logLevel, final String message,
              @Nullable final String address, @Nullable final ThingId thingId)
focal_class.full_signature: public static LogEntryBuilder getBuilder(final String correlationId, final Instant timestamp, final LogCategory logCategory,
              final LogType logType, final LogLevel logLevel, final String message,
              @Nullable final String address, @Nullable final ThingId thingId)
focal_class.identifier: getBuilder
focal_class.modifiers: public static
focal_class.parameters: (final String correlationId, final Instant timestamp, final LogCategory logCategory,
              final LogType logType, final LogLevel logLevel, final String message,
              @Nullable final String address, @Nullable final ThingId thingId)
focal_class.return: LogEntryBuilder
focal_class.signature: LogEntryBuilder getBuilder(final String correlationId, final Instant timestamp, final LogCategory logCategory,
              final LogType logType, final LogLevel logLevel, final String message,
              @Nullable final String address, @Nullable final ThingId thingId)
focal_class.class_method_signature: ImmutableLogEntry.fromJson(final JsonObject jsonObject)
focal_class.full_signature: public static LogEntry fromJson(final JsonObject jsonObject)
focal_class.identifier: fromJson
focal_class.modifiers: public static
focal_class.parameters: (final JsonObject jsonObject)
focal_class.return: LogEntry
focal_class.signature: LogEntry fromJson(final JsonObject jsonObject)
focal_class.class_method_signature: ImmutableLogEntry.getTimestampOrThrow(final CharSequence dateTime)
focal_class.full_signature: private static Instant getTimestampOrThrow(final CharSequence dateTime)
focal_class.identifier: getTimestampOrThrow
focal_class.modifiers: private static
focal_class.parameters: (final CharSequence dateTime)
focal_class.return: Instant
focal_class.signature: Instant getTimestampOrThrow(final CharSequence dateTime)
focal_class.class_method_signature: ImmutableLogEntry.getLogCategoryOrThrow(final JsonObject jsonObject)
focal_class.full_signature: private static LogCategory getLogCategoryOrThrow(final JsonObject jsonObject)
focal_class.identifier: getLogCategoryOrThrow
focal_class.modifiers: private static
focal_class.parameters: (final JsonObject jsonObject)
focal_class.return: LogCategory
focal_class.signature: LogCategory getLogCategoryOrThrow(final JsonObject jsonObject)
focal_class.class_method_signature: ImmutableLogEntry.getLogTypeOrThrow(final JsonObject jsonObject)
focal_class.full_signature: private static LogType getLogTypeOrThrow(final JsonObject jsonObject)
focal_class.identifier: getLogTypeOrThrow
focal_class.modifiers: private static
focal_class.parameters: (final JsonObject jsonObject)
focal_class.return: LogType
focal_class.signature: LogType getLogTypeOrThrow(final JsonObject jsonObject)
focal_class.class_method_signature: ImmutableLogEntry.getLogLevelOrThrow(final JsonObject jsonObject)
focal_class.full_signature: private static LogLevel getLogLevelOrThrow(final JsonObject jsonObject)
focal_class.identifier: getLogLevelOrThrow
focal_class.modifiers: private static
focal_class.parameters: (final JsonObject jsonObject)
focal_class.return: LogLevel
focal_class.signature: LogLevel getLogLevelOrThrow(final JsonObject jsonObject)
focal_class.class_method_signature: ImmutableLogEntry.getCorrelationId()
focal_class.full_signature: @Override public String getCorrelationId()
focal_class.identifier: getCorrelationId
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getCorrelationId()
focal_class.class_method_signature: ImmutableLogEntry.getTimestamp()
focal_class.full_signature: @Override public Instant getTimestamp()
focal_class.identifier: getTimestamp
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Instant
focal_class.signature: Instant getTimestamp()
focal_class.class_method_signature: ImmutableLogEntry.getLogCategory()
focal_class.full_signature: @Override public LogCategory getLogCategory()
focal_class.identifier: getLogCategory
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: LogCategory
focal_class.signature: LogCategory getLogCategory()
focal_class.class_method_signature: ImmutableLogEntry.getLogType()
focal_class.full_signature: @Override public LogType getLogType()
focal_class.identifier: getLogType
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: LogType
focal_class.signature: LogType getLogType()
focal_class.class_method_signature: ImmutableLogEntry.getLogLevel()
focal_class.full_signature: @Override public LogLevel getLogLevel()
focal_class.identifier: getLogLevel
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: LogLevel
focal_class.signature: LogLevel getLogLevel()
focal_class.class_method_signature: ImmutableLogEntry.getMessage()
focal_class.full_signature: @Override public String getMessage()
focal_class.identifier: getMessage
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getMessage()
focal_class.class_method_signature: ImmutableLogEntry.getAddress()
focal_class.full_signature: @Override public Optional<String> getAddress()
focal_class.identifier: getAddress
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Optional<String>
focal_class.signature: Optional<String> getAddress()
focal_class.class_method_signature: ImmutableLogEntry.getThingId()
focal_class.full_signature: @Override public Optional<ThingId> getThingId()
focal_class.identifier: getThingId
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Optional<ThingId>
focal_class.signature: Optional<ThingId> getThingId()
focal_class.class_method_signature: ImmutableLogEntry.toJson(final JsonSchemaVersion schemaVersion, final Predicate<JsonField> predicate)
focal_class.full_signature: @Override public JsonObject toJson(final JsonSchemaVersion schemaVersion, final Predicate<JsonField> predicate)
focal_class.identifier: toJson
focal_class.modifiers: @Override public
focal_class.parameters: (final JsonSchemaVersion schemaVersion, final Predicate<JsonField> predicate)
focal_class.return: JsonObject
focal_class.signature: JsonObject toJson(final JsonSchemaVersion schemaVersion, final Predicate<JsonField> predicate)
focal_class.class_method_signature: ImmutableLogEntry.equals(@Nullable final Object o)
focal_class.full_signature: @Override public boolean equals(@Nullable final Object o)
focal_class.identifier: equals
focal_class.modifiers: @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: ImmutableLogEntry.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: ImmutableLogEntry.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_method.body: public static LogEntry fromJson(final JsonObject jsonObject) {
          final String correlationId = jsonObject.getValueOrThrow(JsonFields.CORRELATION_ID);
          final Instant timestamp = getTimestampOrThrow(jsonObject.getValueOrThrow(JsonFields.TIMESTAMP));
          final LogCategory category = getLogCategoryOrThrow(jsonObject);
          final LogType type = getLogTypeOrThrow(jsonObject);
          final LogLevel level = getLogLevelOrThrow(jsonObject);
          final String message = jsonObject.getValueOrThrow(JsonFields.MESSAGE);
          final String address = jsonObject.getValue(JsonFields.ADDRESS).orElse(null);
          final ThingId thingId = jsonObject.getValue(JsonFields.THING_ID).map(ThingId::of).orElse(null);
  
          return getBuilder(correlationId, timestamp, category, type, level, message, address, thingId)
                  .build();
      }
focal_method.class_method_signature: ImmutableLogEntry.fromJson(final JsonObject jsonObject)
focal_method.full_signature: public static LogEntry fromJson(final JsonObject jsonObject)
focal_method.identifier: fromJson
focal_method.invocations: getValueOrThrow getTimestampOrThrow getValueOrThrow getLogCategoryOrThrow getLogTypeOrThrow getLogLevelOrThrow getValueOrThrow orElse getValue orElse map getValue build getBuilder
focal_method.modifiers: public static
focal_method.parameters: (final JsonObject jsonObject)
focal_method.return: LogEntry
focal_method.signature: LogEntry fromJson(final JsonObject jsonObject)