|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cleancode.util.Common
public final class Common
Provides some common support methods.
Field Summary | |
---|---|
static String |
VERSION
Current version of this class. |
Method Summary | ||
---|---|---|
static String |
decAndHex(int n)
Generates a decimal and hex representation of an integer. |
|
static int |
exponent(int value)
Returns the power of two of the given number. |
|
static
|
toHashMap(T[] items)
Generates a hash map from a one-dimensional array. |
|
static
|
toHashSet(T[] items)
Generates a hash set from a one-dimensional array of items. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String VERSION
Method Detail |
---|
public static String decAndHex(int n)
n
- integer argument
public static <T> HashMap<T,T> toHashMap(T[] items)
T
- Generic-type.items
- array from which to generate Map.
public static <T> HashSet<T> toHashSet(T[] items)
T
- Generic-type.items
- array from which to generate Set.
public static int exponent(int value)
value
- to examine
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
CleanCode Java Libraries | Copyright © 2001-2012 Michael Sorens - Revised 2012.12.10 |