[java] Deprecating LogEntries.filter(Level level) in favor of Java 8
@@ -53,7 +53,10 @@ public LogEntries(Iterable<LogEntry> entries) {
/**
* @param level {@link Level} the level to filter the log entries
* @return all log entries for that level and above
+ * @deprecated To be deleted in 4.0, use Java 8 stream abilities to filter log entries:
+ * <code>logEntries.getAll().stream().filter(somePredicate).collect(Collectors.toList())</code>
*/
+ @Deprecated
public List<LogEntry> filter(Level level) {
return unmodifiableList(entries.stream()
.filter(entry -> entry.getLevel().intValue() >= level.intValue())
