public class AlgoliaUtils extends Object
| Constructor and Description |
|---|
AlgoliaUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
ensureObjectID(Class<T> clazz)
Ensure that the objectID field or the @JsonProperty(\"objectID\")" is present in the given
class
|
static <T> String |
getObjectID(T data,
Class<T> clazz)
Get the objectID of the given class at runtime
|
static Boolean |
isEmptyWhiteSpace(String stringToCheck)
Checks if the given string is empty or white spaces
|
static Boolean |
isNullOrEmptyWhiteSpace(String stringToCheck)
Checks if the given string is null, empty or white spaces
|
public static Boolean isEmptyWhiteSpace(String stringToCheck)
public static Boolean isNullOrEmptyWhiteSpace(String stringToCheck)
public static <T> void ensureObjectID(@Nonnull Class<T> clazz)
clazz - The class to scanAlgoliaRuntimeException - When the class doesn't have an objectID field or a Jackson
annotation @JsonProperty(\"objectID\"")public static <T> String getObjectID(@Nonnull T data, @Nonnull Class<T> clazz)
clazz - The class to scanAlgoliaRuntimeException - When the class doesn't have an objectID field or a Jackson
annotation @JsonProperty(\"objectID\"")Copyright © 2019. All rights reserved.