mirror of https://github.com/noisymime/Arduino.git
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…
Reference in New Issue