public enum Algorithms extends Enum<Algorithms>
Created with IntelliJ IDEA. User: luog Date: 5/11/13 Time: 12:15 PM To change this template use File | Settings | File Templates.
Modifier and Type | Field and Description |
---|---|
static ArrayInsertionSort |
ARRAY_INSERTION_SORT |
static ArrayInsertionSortInplace |
ARRAY_INSERTION_SORT_INPLACE |
static ArrayReverse |
ARRAY_REVERSE |
static ArrayReverseInplace |
ARRAY_REVERSE_INPLACE |
Modifier and Type | Method and Description |
---|---|
static <T> ArrayInsertionSort<T> |
arrayInsertionSort() |
static <T> ArrayInsertionSortInplace<T> |
arrayInsertionSortInplace() |
static <T> ArrayReverse<T> |
arrayReverse() |
static <T> ArrayReverseInplace<T> |
arrayReverseInplace() |
static Algorithms |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Algorithms[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArrayReverse ARRAY_REVERSE
public static final ArrayReverseInplace ARRAY_REVERSE_INPLACE
public static final ArrayInsertionSort ARRAY_INSERTION_SORT
public static final ArrayInsertionSortInplace ARRAY_INSERTION_SORT_INPLACE
public static Algorithms[] values()
for (Algorithms c : Algorithms.values()) System.out.println(c);
public static Algorithms valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static final <T> ArrayReverse<T> arrayReverse()
public static final <T> ArrayReverseInplace<T> arrayReverseInplace()
public static final <T> ArrayInsertionSort<T> arrayInsertionSort()
public static final <T> ArrayInsertionSortInplace<T> arrayInsertionSortInplace()
Copyright © 2014–2018 OSGL (Open Source General Library). All rights reserved.