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

com.rafaskoberg.gdx.typinglabel.TokenEntry Maven / Gradle / Ivy

The newest version!

package com.rafaskoberg.gdx.typinglabel;

/** Container representing a token, parsed parameters and its position in text. */
class TokenEntry implements Comparable {
    String        token;
    TokenCategory category;
    int           index;
    float         floatValue;
    String        stringValue;
    Effect        effect;

    TokenEntry(String token, TokenCategory category, int index, float floatValue, String stringValue) {
        this.token = token;
        this.category = category;
        this.index = index;
        this.floatValue = floatValue;
        this.stringValue = stringValue;
    }

    @Override
    public int compareTo(TokenEntry o) {
        return Integer.compare(index, o.index);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy