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

com.vladsch.flexmark.util.options.ParsedOptionStatus Maven / Gradle / Ivy

There is a newer version: 0.64.8
Show newest version
package com.vladsch.flexmark.util.options;

public enum ParsedOptionStatus {
    VALID(0),
    IGNORED(1),
    WEAK_WARNING(2),
    WARNING(3),
    ERROR(4);

    final private int level;

    ParsedOptionStatus(int level) {
        this.level = level;
    }

    ParsedOptionStatus escalate(ParsedOptionStatus other) {
        return level < other.level ? other : this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy