SquirrelJME/SquirrelJME

View on GitHub
modules/cldc-compact/src/main/java/java/util/__BlockSort__.java

Summary

Maintainability
A
0 mins
Test Coverage
// -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
// ---------------------------------------------------------------------------
// SquirrelJME
//     Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
// ---------------------------------------------------------------------------
// SquirrelJME is under the Mozilla Public License Version 2.0.
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package java.util;

import cc.squirreljme.runtime.cldc.debug.Debugging;

/**
 * This class provides the block sort algorithm used to sort items.
 *
 * https://en.wikipedia.org/wiki/Block_sort
 *
 * @since 2018/10/26
 */
final class __BlockSort__
{
    /**
     * Sorts the given list using block sort.
     *
     * @param <T> The type to use.
     * @param __a The list to sort.
     * @param __from From index.
     * @param __to To index.
     * @param __comp The comparator to use.
     * @throws NullPointerException On null arguments.
     * @since 2018/10/16
     */
    public static <T> void sort(List<T> __a, int __from, int __to,
        Comparator<? super T> __comp)
        throws NullPointerException
    {
        if (__a == null || __comp == null)
            throw new NullPointerException("NARG");
        
        throw Debugging.todo();
    }
}