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

skadistats.clarity.model.GameVersionRange Maven / Gradle / Ivy

Go to download

Clarity is an open source replay parser for Dota 2, CSGO, CS2 and Deadlock written in Java.

There is a newer version: 3.1.1
Show newest version
package skadistats.clarity.model;

public class GameVersionRange {
    private final Integer start;
    private final Integer end;

    public GameVersionRange(Integer start, Integer end) {
        this.start = start;
        this.end = end;
    }

    public boolean appliesTo(int gameVersion) {
        if (start == null && end == null) return true;
        return gameVersion != -1 && (start == null || start <= gameVersion) && (end == null || end >= gameVersion);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy