Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.junit.extensions.dynamicsuite.sort;
 
 import java.util.List;

User: Chris Date: 24.08.14 Time: 18:00
public class TestNameSort implements TestSort {
    @Override
    public void sort(List<Class<?>> classes) {
        Collections.sort(classesnew Comparator<Class<?>>() {
            @Override
            public int compare(Class<?> o1Class<?> o2) {
                return o1.getSimpleName().compareTo(o2.getSimpleName());
            }
        });
    }
New to GrepCode? Check out our FAQ X