org.unlaxer.jaddress.parser.StateSpecifier 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 java.util.function.Supplier;
import org.unlaxer.jaddress.model.StringValue;
import io.vavr.Lazy;
public class StateSpecifier extends StringValue implements Supplier{
private static final long serialVersionUID = -4210394295364826292L;
final Lazy state;
public StateSpecifier(String value) {
super(value);
state = Lazy.of(()->ParsingState.valueOf(value));
}
public ParsingState get() {
return state.get();
}
} © 2015 - 2025 Weber Informatics LLC | Privacy Policy