/*
 * Decompiled with CFR 0.152.
 */
package org.apache.logging.log4j.util;

public final class Strings {
    public static final String EMPTY = "";

    private Strings() {
    }

    public static boolean isEmpty(CharSequence cs) {
        return cs == null || cs.length() == 0;
    }

    public static boolean isNotEmpty(CharSequence cs) {
        return !Strings.isEmpty(cs);
    }

    public static String trimToNull(String str) {
        String ts = str == null ? null : str.trim();
        return Strings.isEmpty(ts) ? null : ts;
    }
}
