FtcXtensible/src/main/java/org/ftccommunity/ftcxtensible/AnnotationFtcRegister.java
private TreeMap<String, LinkedList<Class<?>>> treeMapify(
            HashMap<String, LinkedList<Class<?>>> opModes) {

        TreeMap<String, LinkedList<Class<?>>> sortedOpModes = new TreeMap<>();
        for (String key : opModes.keySet()) {
            Class<?> opMode = opModes.get(key).getFirst();
            String name = getOpModeName(opMode);

            sortedOpModes.put(name, opModes.get(key));
        }

        return sortedOpModes;
    }
/**
     * Converts the OpMode HashMap to a TreeMap, using the proper sorting algorithm.
     *
     * @param opModes the {@code HashMap} containing the properly grouped OpModes
     * @return a {@link TreeMap} with a proper sorting
     */
Converts the OpMode HashMap to a TreeMap, using the proper sorting algorithm.
@param opModes the  HashMap containing the properly grouped OpModes
@return a  TreeMap with a proper sorting
Converts the OpMode HashMap to a TreeMap using the proper sorting algorithm . @param opModes the HashMap containing the properly grouped OpModes @return a TreeMap with a proper sorting
private TreeMap<String, LinkedList<Class<?>>> treeMapify(
            HashMap<String, LinkedList<Class<?>>> opModes) {
        TreeMap<String, LinkedList<Class<?>>> sortedOpModes = new TreeMap<>();
        for (String key : opModes.keySet()) {
            Class<?> opMode = opModes.get(key).getFirst();
            String name = getOpModeName(opMode);
            sortedOpModes.put(name, opModes.get(key));
        }
        return sortedOpModes;
    }
private TreeMap < String , LinkedList < Class < ? > > > treeMapify ( HashMap < String , LinkedList < Class < ? > > > opModes ) { TreeMap < String , LinkedList < Class < ? > > > sortedOpModes = new TreeMap < > ( ) ; for ( String key : opModes . keySet ( ) ) { Class < ? > opMode = opModes . get ( key ) . getFirst ( ) ; String name = getOpModeName ( opMode ) ; sortedOpModes . put ( name , opModes . get ( key ) ) ; } return sortedOpModes ; }
Converts the OpMode HashMap to a TreeMap, using the proper sorting algorithm.
Converts the OpMode HashMap to a TreeMap using the proper sorting algorithm .