io.github.kits.json.tokenizer.JsonToken Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of whimthen-kits Show documentation
Show all versions of whimthen-kits Show documentation
Easy to use java tool library.
The newest version!
package io.github.kits.json.tokenizer;
/**
* @project: kits
* @created: with IDEA
* @author: whimthen
* @date: 2019-03-05-11:15 | March. Tuesday
*/
public class JsonToken {
private JsonTokenType tokenType;
private String value;
public JsonToken(JsonTokenType tokenType, String value) {
this.tokenType = tokenType;
this.value = value;
}
public JsonToken(JsonTokenType jsonTokenType) {
this.tokenType = jsonTokenType;
this.value = jsonTokenType.getValue();
}
public JsonTokenType getTokenType() {
return tokenType;
}
public JsonToken setTokenType(JsonTokenType tokenType) {
this.tokenType = tokenType;
return this;
}
public String getValue() {
return value;
}
public JsonToken setValue(String value) {
this.value = value;
return this;
}
}