/**
* キーはISO639、値は多言語テキスト。
*/
- private final Map<String, String> nameMap =
- new HashMap<String, String>();
+ private final Map<String, String> nameMap = new HashMap<>();
/**
*/
public List<String> lang639CodeList(){
Set<String> set = this.nameMap.keySet();
- List<String> result = new ArrayList<String>(set.size());
+ List<String> result = new ArrayList<>(set.size());
for(String lang : set){
if(lang.equals(CODE639_PRIMARY)) result.add(lang);
AliasMap(){
super();
- this.primaryAliasMap = new HashMap<String, T>();
- this.globalAliasMap = new HashMap<String, T>();
+ this.primaryAliasMap = new HashMap<>();
+ this.globalAliasMap = new HashMap<>();
return;
}
super();
if(primaryNum <= 0){
- this.primaryNameList = new LinkedList<String>();
+ this.primaryNameList = new LinkedList<>();
}else{
- this.primaryNameList = new ArrayList<String>(primaryNum);
+ this.primaryNameList = new ArrayList<>(primaryNum);
}
if(globalNum <= 0){
- this.globalNameList = new LinkedList<String>();
+ this.globalNameList = new LinkedList<>();
}else{
- this.globalNameList = new ArrayList<String>(globalNum);
+ this.globalNameList = new ArrayList<>(globalNum);
}
this.umodPrimaryNameList =
private static final String ATTR_NAME = "name";
private static final List<TypicalBone> BONE_LIST =
- new LinkedList<TypicalBone>();
+ new LinkedList<>();
private static final AliasMap<TypicalBone> BONE_ALIAS_MAP =
- new AliasMap<TypicalBone>();
+ new AliasMap<>();
private static final List<TypicalBone> BONE_UNMODLIST =
Collections.unmodifiableList(BONE_LIST);
private static final List<TypicalMorph> EMPTY = Collections.emptyList();
private static final Map<MorphType, List<TypicalMorph>> TYPED_MAP =
- new EnumMap<MorphType, List<TypicalMorph>>(MorphType.class);
+ new EnumMap<>(MorphType.class);
private static final AliasMap<TypicalMorph> MORPH_ALIAS_MAP =
- new AliasMap<TypicalMorph>();
+ new AliasMap<>();
static{
NodeList morphList = groupElem.getElementsByTagName(ELEM_MORPH);
int morphNo = morphList.getLength();
List<TypicalMorph> groupedList =
- new ArrayList<TypicalMorph>(morphNo);
+ new ArrayList<>(morphNo);
for(int idx = 0; idx < morphNo; idx++){
Element morphElem = (Element) morphList.item(idx);
*/
public static List<Element> getChildList(Element parent,
String childTag){
- List<Element> result = new LinkedList<Element>();
+ List<Element> result = new LinkedList<>();
for(Node node = parent.getFirstChild();
node != null;
*/
private static Source[] toLocalSourceArray(LocalXmlResource[] resArray)
throws MalformedURLException, IOException{
- List<Source> sourceList = new ArrayList<Source>(resArray.length);
+ List<Source> sourceList = new ArrayList<>(resArray.length);
for(LocalXmlResource resource : resArray){
Source localSource = toLocalSource(resource);
assert this.getClass().equals(THISCLASS);
Map<URI, URI> map;
- map = new HashMap<URI, URI>();
+ map = new HashMap<>();
map = Collections.synchronizedMap(map);
this.uriMap = map;