package stexfires.io.path;

import stexfires.core.filter.RecordFilter;

import java.util.Objects;

/**
 * @author Mathias Kalb
 * @since 0.1
 */
public class PathTypeFilter<T extends PathRecord> implements RecordFilter<T> {

    protected final PathType pathType;

    public PathTypeFilter(PathType pathType) {
        Objects.requireNonNull(pathType);
        this.pathType = pathType;
    }

    @Override
    public boolean isValid(T record) {
        return Objects.equals(record.pathType(), pathType);
    }

}

@@ -460,23 +460,8 @@
 urn 
-Objects.equals(
 reco
@@ -477,9 +477,11 @@
 pe()
-,
+ ==
  pat
@@ -481,24 +481,23 @@
  == pathType
-)
 ;%0A    %7D%0A%0A%7D%0A

Change Enum comparison