Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.cantaa.util.comparator;

Author(s):
Hans Lesmeister
 
 
     static final ComparableComparator ascendInstance = new ComparableComparator(false);
     static final ComparableComparator descendInstance = new ComparableComparator(true);
    ComparableComparator(boolean isDescend) {
        super(isDescend);
    }
    static ComparableComparator getInstance(boolean descend) {
        if (descend) {
            return ;
        }
        return ;
    }
    @Override
    public Comparable getComparableValue(Comparable object) {
        return object;
    }
New to GrepCode? Check out our FAQ X