|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xerial.util.Algorithm
public class Algorithm
プログラミングに便利なAlgorithm群を定義
| Method Summary | ||
|---|---|---|
static
|
add(Collection<E> c,
E[] array)
arrayのそれぞれの値を、逐次cに追加する。 |
|
static
|
add(List<E> container,
Collection<E> input)
inputのそれぞれの要素を、逐次containerに追加する |
|
static int |
boolToInt(boolean flag)
boolean値を数値に変換 |
|
static
|
lexicographicalCompare(Iterable<E> f1,
Iterable<E> f2)
辞書順に比較を行う。 |
|
static
|
minmax(E e1,
E e2)
2つの入力の大小のペアを計算する |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <E extends Comparable<E>> MinMax<E> minmax(E e1,
E e2)
E - Comparable Interfaceを実装したクラスe1 - e2 -
public static <E extends Comparable<E>> int lexicographicalCompare(Iterable<E> f1,
Iterable<E> f2)
E - compareToが実装されているクラスf1 - f2 -
public static int boolToInt(boolean flag)
flag -
public static <E> void add(Collection<E> c,
E[] array)
E - 任意の型c - 代入先のCollectionarray - 代入元配列
public static <E> void add(List<E> container,
Collection<E> input)
E - container - input -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
