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

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

package org.unlaxer.jaddress.parser;

import java.util.Comparator;
import java.util.Map;

import org.unlaxer.jaddress.entity.standard.郵便番号;
import org.unlaxer.jaddress.entity.standard.階層要素;


public interface BuildingHierarchyResolver2 {
	
	public default BuildingHierarchyResolverResult2 resolve(AddressContext addressContext) {
		
		//郵便番号と丁目以降のElementを使用して建物以降の階層要素のリストを得る
		//第一段階として、graphDBからtreeを取得する
		
		郵便番号 zip = addressContext.zip();
		
		Map<階層要素 , AddressElement> 丁目以降枝番までBy階層要素 = addressContext.丁目以降枝番までAsMap();
		
		return resolve(zip, 丁目以降枝番までBy階層要素);
	}
	
	static final Comparator longerIsFirst = (x,y)->y.length() - x.length();
	
	public BuildingHierarchyResolverResult2 resolve(郵便番号 zip  , Map<階層要素 , AddressElement> 丁目以降枝番までBy階層要素);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy