mirror of
https://github.com/esp8266/Arduino.git
synced 2025-08-09 22:24:14 +03:00
Removed objectutil.
This commit is contained in:
@@ -1,13 +0,0 @@
|
|||||||
package processing.app;
|
|
||||||
|
|
||||||
public class ObjectUtil {
|
|
||||||
|
|
||||||
public static boolean isNull(Object o) {
|
|
||||||
return o == null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static <T> T defaultIfEmpty(T obj, T defaultObj) {
|
|
||||||
if (isNull(obj)) return defaultObj;
|
|
||||||
return obj;
|
|
||||||
}
|
|
||||||
}
|
|
Reference in New Issue
Block a user