|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.appengine.api.search.Util
public final class Util
A utility class that does various checks on search and indexing parameters.
Method Summary | ||
---|---|---|
static
|
defaultIfNull(T value,
T defaultValue)
A helper method for overriding null values with a default value. |
|
static boolean |
equalObjects(java.lang.Object a,
java.lang.Object b)
A helper method for testing two objects are equal. |
|
static java.lang.String |
fieldToString(java.lang.String name,
java.lang.Object value)
Returns a string that allows a field value pair to be added to a debug string. |
|
static boolean |
isNullOrEmpty(java.lang.String string)
|
|
static
|
iterableFieldToString(java.lang.String fieldName,
java.lang.Iterable<T> objects)
Returns a string which can be used to append an iterable field to a debug string. |
|
static
|
iterableToString(java.lang.Iterable<T> objects,
int limit)
Returns a string representation of the iterable objects. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isNullOrEmpty(java.lang.String string)
public static boolean equalObjects(java.lang.Object a, java.lang.Object b)
public static <T> T defaultIfNull(T value, T defaultValue)
value
- the value of some fielddefaultValue
- the default value for the field
public static <T> java.lang.String iterableToString(java.lang.Iterable<T> objects, int limit)
objects
- an iterable of objects to be turned into a stringlimit
- the maximum number of objects from iterable to be used
to build a stringpublic static <T> java.lang.String iterableFieldToString(java.lang.String fieldName, java.lang.Iterable<T> objects)
public static java.lang.String fieldToString(java.lang.String name, java.lang.Object value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |