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

com.joonsang.graylog.sdk.spring.starter.constant.TimeUnit Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
package com.joonsang.graylog.sdk.spring.starter.constant;

import com.google.common.collect.ImmutableList;

import java.util.List;

/**
 * Graylog Time Unit Constants
 * @author debugrammer
 * @since 1.0.0
 */
public class TimeUnit {

    public static final String YEAR = "year";

    public static final String QUARTER = "quarter";

    public static final String MONTH = "month";

    public static final String WEEK = "week";

    public static final String DAY = "day";

    public static final String HOUR = "hour";

    public static final String MINUTE = "minute";

    public static List getFields() {
        return ImmutableList.of(YEAR, QUARTER, MONTH, WEEK, DAY, HOUR, MINUTE);
    }

    public static boolean contains(String timeUnit) {
        return getFields().contains(timeUnit);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy