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

org.unlaxer.jaddress.parser.StateSpecifier Maven / Gradle / Ivy

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