Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.kasource.commons.reflection.filter.fields;
 
Filters fields by evaluating two other field filters and OR:ing their result.

Note: It's not recommended to use this class directly, instead use the org.kasource.commons.reflection.FieldFilterBuilder.

Author(s):
rikardwi
public class OrFieldFilter implements FieldFilter {
    private FieldFilter left;
    private FieldFilter right;
    
    public OrFieldFilter(FieldFilter leftFieldFilter right) {
        this. = left;
        this. = right;
    }
    
    @Override
    public boolean passFilter(Field field) {
      return .passFilter(field) || .passFilter(field);
    }
New to GrepCode? Check out our FAQ X