Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.selesse.jxlint.model;
 
 
 
public class LintErrorOrderings {
    private static Ordering<LintErrorlineNumberOrdering = new Ordering<LintError>() {
        @Override
        public int compare(@Nullable LintError left, @Nullable LintError right) {
            return Ints.compare(left.getLineNumber(), right.getLineNumber());
        }
    };
    private static Ordering<LintErrorcategoryNameOrdering = new Ordering<LintError>() {
        @Override
        public int compare(@Nullable LintError left, @Nullable LintError right) {
            return LintRuleOrderings.getCategoryThenNameOrdering().
                    compare(left.getViolatedRule(), right.getViolatedRule());
        }
    };
        @Override
        public int compare(@Nullable LintError left, @Nullable LintError right) {
            return ComparisonChain.start()
                    .compare(left.getViolatedRule(), right.getViolatedRule(),
                            LintRuleOrderings.getCategoryThenNameOrdering())
                    .compare(left.getFile(), right.getFile())
                    .compare(left.getLineNumber(), right.getLineNumber())
                    .result();
        }
    };
    private static final Ordering<LintErrorfileThenLineNumberOrdering = new Ordering<LintError>() {
        @Override
        public int compare(@Nullable LintError left, @Nullable LintError right) {
            return ComparisonChain.start()
                    .compare(left.getFile(), right.getFile())
                    .compare(left.getLineNumber(), right.getLineNumber())
                    .result();
        }
    };
    public static Ordering<LintErrorgetLineNumberOrdering() {
        return ;
    }
    public static Ordering<LintErrorgetCategoryThenNameOrdering() {
        return ;
    }
        return ;
    }
    public static Ordering<LintErrorgetFileThenLineNumberOrdering() {
        return ;
    }
New to GrepCode? Check out our FAQ X