| /** |
| * Copyright (c) 2015 Codetrails GmbH. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| */ |
| package org.eclipse.epp.logging.aeri.core.filters; |
| |
| import org.eclipse.core.runtime.IStatus; |
| import org.eclipse.jdt.annotation.Nullable; |
| |
| import com.google.common.base.Predicate; |
| |
| public class NoErrorStatusFilter implements Predicate<IStatus> { |
| |
| @Override |
| public boolean apply(@Nullable IStatus input) { |
| return input.matches(IStatus.ERROR); |
| } |
| } |