package com.onaro.sanscreen.client.view.changes; import com.onaro.sanscreen.types.ChangeType; /** * A filter for logical changes. */ public class TypeFilterLogical implements TypeFilter { /** * Tests if a change-group is for a logical change. * @param changeGroup the change-group * @return true if this change is a path/violation change */ public boolean shouldBeDisplayed(ChangeGroup changeGroup) { return ChangeType.isPathChanged(changeGroup.getType()) || ChangeType.TOO_MANY_CHANGES.equals(changeGroup.getType()); } }