src/main/java/org/wltea/analyzer/dic/DictSegment.java
private Map<Character , DictSegment> getChildrenMap(){
		synchronized(this){
			if(this.childrenMap == null){
				this.childrenMap = new ConcurrentHashMap<Character, DictSegment>(ARRAY_LENGTH_LIMIT * 2,0.8f);
			}
		}
		return this.childrenMap;
	}
private Map<Character , DictSegment> getChildrenMap(){
		synchronized(this){
			if(this.childrenMap == null){
				this.childrenMap = new ConcurrentHashMap<Character, DictSegment>(ARRAY_LENGTH_LIMIT * 2,0.8f);
			}
		}
		return this.childrenMap;
	}
private Map < Character , DictSegment > getChildrenMap ( ) { synchronized ( this ) { if ( this . childrenMap == null ) { this . childrenMap = new ConcurrentHashMap < Character , DictSegment > ( ARRAY_LENGTH_LIMIT * 2 , 0.8f ) ; } } return this . childrenMap ; }
获取Map容器
线程同步方法
获取Map容器 线程同步方法