public final class ProtempaUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ProtempaUtil.PropositionDefinitionDisplayNameComparator
Comparator for comparing proposition definitions by display name.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
checkArray(Object[] array,
String arrayName)
Checks if the specified array is null, has length zero or has null
values.
|
static void |
checkArrayForNullElement(Object[] array,
String arrayName)
Checks if the specified array has any null elements.
|
static void |
internAll(String[] strings)
Replaces every element of the supplied string array with an interned
copy as created by
String.intern(). |
public static void checkArray(Object[] array, String arrayName)
IllegalArgumentException is thrown.array - an Object[].arrayName - the variable name String of the array (
used in the exception message). Should not be null, or the
exception message will not indicate which parameter was erroneously
null.public static void checkArrayForNullElement(Object[] array, String arrayName)
array - an Object[]. Must not be null, or
a NullPointerException will be thrown.arrayName - the variable name String of the array (used
in the exception message). Should not be null, or the
exception message will not indicate which parameter was erroneously
null.public static void internAll(String[] strings)
String.intern().strings - a String[]. Cannot be null.Copyright © 2012–2016 Emory University. All rights reserved.