dev.secondsun.retro.util.vo.Tokens Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of retro-common Show documentation
Show all versions of retro-common Show documentation
This is a library that provides common classes and utilities for secondsun's retro projects.
package dev.secondsun.retro.util.vo;
import java.util.ArrayList;
import java.util.List;
import dev.secondsun.retro.util.Token;
public record Tokens(String line, List tokens) {
public Tokens add(Token token) {
tokens.add(token);
return new Tokens(line, new ArrayList<>(tokens));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy