Class Utils


  • public class Utils
    extends Object
    Author:
    scf
    • Method Detail

      • isNullOrEmpty

        public static boolean isNullOrEmpty​(String string)
        Returns true if the given string is null, or empty.
        Parameters:
        string - the string to check.
        Returns:
        true if string == null || string.isEmpty()
      • showAlert

        public static void showAlert​(javafx.scene.control.Alert.AlertType type,
                                     String title,
                                     String text,
                                     Throwable exception)
      • deleteAll

        public static void deleteAll​(de.fraunhofer.iosb.ilt.sta.service.SensorThingsService sts)
                              throws de.fraunhofer.iosb.ilt.sta.ServiceFailureException
        Throws:
        de.fraunhofer.iosb.ilt.sta.ServiceFailureException
      • deleteAll

        public static <T extends de.fraunhofer.iosb.ilt.sta.model.Entity<T>> void deleteAll​(de.fraunhofer.iosb.ilt.sta.dao.BaseDao<T> doa)
                                                                                     throws de.fraunhofer.iosb.ilt.sta.ServiceFailureException
        Throws:
        de.fraunhofer.iosb.ilt.sta.ServiceFailureException