@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((aliasesById == null) ? 0 : aliasesById.hashCode()); result = prime * result + ((contentLang == null) ? 0 : contentLang.hashCode()); result = prime * result + ((defaultNamespace == null) ? 0 : defaultNamespace.hashCode()); result = prime * result + ((engineConfig == null) ? 0 : engineConfig.hashCode()); result = prime * result + ((iwPrefix == null) ? 0 : iwPrefix.hashCode()); result = prime * result + ((namespaceById == null) ? 0 : namespaceById.hashCode()); result = prime * result + ((parserConfig == null) ? 0 : parserConfig.hashCode()); result = prime * result + ((pfnGroups == null) ? 0 : pfnGroups.hashCode()); result = prime * result + ((prefixToInterwikiMap == null) ? 0 : prefixToInterwikiMap.hashCode()); result = prime * result + ((tagExtGroups == null) ? 0 : tagExtGroups.hashCode()); result = prime * result + (tagExtensionNamesCaseSensitive ? 1231 : 1237); result = prime * result + ((templateNamespace == null) ? 0 : templateNamespace.hashCode()); result = prime * result + ((wikiUrl == null) ? 0 : wikiUrl.hashCode()); return result; }
protected EngineConfigImpl configureEngine(WikiConfigImpl c) { configureParser(c); EngineConfigImpl cc = c.getEngineConfig(); cc.setTrimTransparentBeforeParsing(true); return cc; }
public WikiConfigImpl() { this.parserConfig = new ParserConfigImpl(this); this.nodeFactory = new EngineNodeFactoryImpl(this.parserConfig); this.textUtils = new EngineAstTextUtilsImpl(this.parserConfig); this.runtimeInfo = new WikiRuntimeInfoImpl(this); this.engineConfig = new EngineConfigImpl(); }
return false; else if (!engineConfig.equals(other.engineConfig)) return false; if (iwPrefix == null)
public WikiConfigImpl() { this.parserConfig = new ParserConfigImpl(this); this.nodeFactory = new EngineNodeFactoryImpl(this.parserConfig); this.textUtils = new EngineAstTextUtilsImpl(this.parserConfig); this.runtimeInfo = new WikiRuntimeInfoImpl(this); this.engineConfig = new EngineConfigImpl(); }
return false; else if (!engineConfig.equals(other.engineConfig)) return false; if (iwPrefix == null)
protected EngineConfigImpl configureEngine(WikiConfigImpl c) { configureParser(c); EngineConfigImpl cc = c.getEngineConfig(); cc.setTrimTransparentBeforeParsing(true); return cc; }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((aliasesById == null) ? 0 : aliasesById.hashCode()); result = prime * result + ((contentLang == null) ? 0 : contentLang.hashCode()); result = prime * result + ((defaultNamespace == null) ? 0 : defaultNamespace.hashCode()); result = prime * result + ((engineConfig == null) ? 0 : engineConfig.hashCode()); result = prime * result + ((iwPrefix == null) ? 0 : iwPrefix.hashCode()); result = prime * result + ((namespaceById == null) ? 0 : namespaceById.hashCode()); result = prime * result + ((parserConfig == null) ? 0 : parserConfig.hashCode()); result = prime * result + ((pfnGroups == null) ? 0 : pfnGroups.hashCode()); result = prime * result + ((prefixToInterwikiMap == null) ? 0 : prefixToInterwikiMap.hashCode()); result = prime * result + ((tagExtGroups == null) ? 0 : tagExtGroups.hashCode()); result = prime * result + (tagExtensionNamesCaseSensitive ? 1231 : 1237); result = prime * result + ((templateNamespace == null) ? 0 : templateNamespace.hashCode()); result = prime * result + ((wikiUrl == null) ? 0 : wikiUrl.hashCode()); return result; }