All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qase.commons.utils.StringUtils Maven / Gradle / Ivy

The newest version!
package io.qase.commons.utils;

import lombok.AccessLevel;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class StringUtils {

    public static boolean isBlank(String string) {
        return string == null || string.trim().isEmpty();
    }

    public static String getDateTime() {
        LocalDateTime now = LocalDateTime.now();
        DateTimeFormatter formatter = DateTimeFormatter.ISO_DATE_TIME;

        return now.format(formatter);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy