mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-17 06:52:18 +01:00
Removed objectutil.
This commit is contained in:
parent
4a09287c45
commit
36b643d79f
@ -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;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user