io.github.linpeilie.processor.utils.ObjectUtils Maven / Gradle / Ivy
The newest version!
package io.github.linpeilie.processor.utils;
public class ObjectUtils {
public static T defaultIfNull(final T object, final T defaultValue) {
return object != null ? object : defaultValue;
}
}