Package com.gears42.iot.webthing
Class Utils
- java.lang.Object
-
- com.gears42.iot.webthing.Utils
-
public class Utils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Utils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetIP()Get the default local IP address.static intgetMin(java.util.List<java.lang.Integer> list)static booleanisNullOrWhitespace(java.lang.String value)static java.lang.Stringtimestamp()Get the current time.
-
-
-
Method Detail
-
getIP
public static java.lang.String getIP()
Get the default local IP address.- Returns:
- The IP address, or null if not found.
-
timestamp
public static java.lang.String timestamp()
Get the current time.- Returns:
- The current time in the form YYYY-mm-ddTHH:MM:SS+00.00
-
isNullOrWhitespace
public static boolean isNullOrWhitespace(java.lang.String value)
-
getMin
public static int getMin(java.util.List<java.lang.Integer> list)
-
-