/**
* Checks if the given object is null and returns its representation given by replacement.
*
+ * @param objectString an object
+ * @param replacement a replacement string
+ * @return a string representing the object
*/
public static String prepareString(Object objectString, String replacement) {
return objectString == null ? replacement : objectString.toString();
/**
* Checks if the given object is null and returns -1 .
*
+ * @param object an object
+ * @return a string representing the object or -1 if null
*/
public static String prepareEmptyInt(Object object) {
return (object == null ? "-1" : object.toString());
/**
* Transforms the given input {@link NormalizedNode} into the given {@link DataObject}.
+ *
+ * @param <T> a generic
+ * @param normalizedNode a non null representation of the normalizedNode
+ * @param rootNode root node
+ * @param codecRegistry codec registry
+ * @return value of the binding Node Entry
*/
@SuppressWarnings("unchecked")
public <T extends DataObject> Optional<T> getDataObject(@Nonnull NormalizedNode<?, ?> normalizedNode,