skadistats.clarity.model.s2.S2FieldPath Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clarity Show documentation
Show all versions of clarity Show documentation
Clarity is an open source replay parser for Dota 2, CSGO, CS2 and Deadlock written in Java.
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();
}
}