org.unlaxer.jaddress.parser.DebugStatus 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;
public class DebugStatus{
public final ResolverResultHolder resolverResults;
final String hyphonedHexes;
public DebugStatus(ResolverResultHolder resolverResults) {
super();
this.resolverResults = resolverResults;
this.hyphonedHexes = resolverResults.toString();
}
public DebugStatus(String hyphonedHexes) {
super();
this.hyphonedHexes = hyphonedHexes;
this.resolverResults = ResolverResultHolder.fromHex(hyphonedHexes);
}
@Override
public String toString() {
return hyphonedHexes;
}
public ResolverResultHolder getResolverResults() {
return resolverResults;
}
public String hyphonedHexes() {
return hyphonedHexes;
}
public boolean hasParsingState(ParsingState parsingState) {
boolean anyMatch = resolverResults.processedProcessor().stream()
.anyMatch(resolverResult -> {
ResolverResultKind kind = resolverResult.kind();
ResolverResultKindOfProcessedProcessor processor =
ResolverResultKindOfProcessedProcessor.class.cast(kind);
return processor.parsingState == parsingState;
});
return anyMatch;
}
} © 2015 - 2025 Weber Informatics LLC | Privacy Policy