randoop.util
Class Util
Object
Util
public final class Util
extends Object
Helpers for assertions, and stuff...
Field Summary
static String |
newLine
|
Method Summary
static String |
convertToHexString(String unicodeString)
|
static String |
createArgListJVML(Class<?>[] paramClasses)
|
static boolean |
equalsWithNull(Object o1,
Object o2)
If both parameters are null, returns true. |
static String |
hangingParagraph(String string,
int colWidth,
int indentWidth)
|
static boolean |
iff(boolean a,
boolean b)
|
static boolean |
implies(boolean a,
boolean b)
|
static boolean |
isJavaIdentifier(String s)
|
static int |
occurCount(StringBuilder text,
String pattern)
|
static List<String> |
toNCols(String s,
int width)
Splits it into words (whitespace separates words). |
static String |
toNColsStr(String s,
int width)
|
| Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
newLine
public static final String newLine
iff
public static boolean iff(boolean a,
boolean b)
implies
public static boolean implies(boolean a,
boolean b)
equalsWithNull
public static boolean equalsWithNull(Object o1,
Object o2)
- If both parameters are null, returns true. If one parameter is null and
the other isn't, returns false. Otherwise, returns o1.equals(o2).
- Parameters:
o1 - o2 -
isJavaIdentifier
public static boolean isJavaIdentifier(String s)
convertToHexString
public static String convertToHexString(String unicodeString)
toNColsStr
public static String toNColsStr(String s,
int width)
toNCols
public static List<String> toNCols(String s,
int width)
- Splits it into words (whitespace separates words).
Appends words to each other until it reaches a word
that would cause the current line to exceed the given width, and then
starts a new line.
occurCount
public static int occurCount(StringBuilder text,
String pattern)
hangingParagraph
public static String hangingParagraph(String string,
int colWidth,
int indentWidth)
createArgListJVML
public static String createArgListJVML(Class<?>[] paramClasses)