org.unlaxer.jaddress.parser.StringIndex Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of japanese-address-parser Show documentation
Show all versions of japanese-address-parser Show documentation
a simplejapanese address parser
The newest version!
package org.unlaxer.jaddress.parser;
import org.unlaxer.jaddress.model.IntegerValue;
public class StringIndex extends IntegerValue{
private static final long serialVersionUID = 8659211772581756685L;
public StringIndex(int value) {
super(value);
}
public static StringIndex of(int index) {
return new StringIndex(index);
}
public StringIndex plus(StringIndex adding) {
return StringIndex.of(value + adding.value);
}
public StringIndex plus(int adding) {
return StringIndex.of(value + adding);
}
public boolean isValid() {
return value >=0;
}
public static StringIndex invalid() {
return INVALID;
}
static final StringIndex INVALID = new StringIndex(-1);
} © 2015 - 2025 Weber Informatics LLC | Privacy Policy