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

skadistats.clarity.model.s2.S2FieldPath 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.s2;

import skadistats.clarity.model.FieldPath;

public interface S2FieldPath extends FieldPath {

    int get(int i);
    int last();

    default String asString() {
        final var sb = new StringBuilder();
        for (var i = 0; i <= last(); i++) {
            if (i != 0) {
                sb.append('/');
            }
            sb.append(get(i));
        }
        return sb.toString();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy