DEV: t
This commit is contained in:
parent
bd7be1df8d
commit
58ab8b76a4
@ -65,13 +65,13 @@ public class Dictionary {
|
|||||||
public boolean containsValue(String type, String value) {
|
public boolean containsValue(String type, String value) {
|
||||||
|
|
||||||
return localAccessMap.containsKey(type) && localAccessMap.get(type)
|
return localAccessMap.containsKey(type) && localAccessMap.get(type)
|
||||||
.getEntries().stream().map(DictionaryEntry::getValue).collect(toSet())
|
.getValues(false)
|
||||||
.contains(value) || localAccessMap.containsKey(type) && localAccessMap.get(type)
|
.contains(value) || localAccessMap.containsKey(type) && localAccessMap.get(type)
|
||||||
.getLocalEntries()
|
.getValues(true)
|
||||||
.contains(value) || localAccessMap.containsKey(RECOMMENDATION_PREFIX + type) && localAccessMap.get(RECOMMENDATION_PREFIX + type)
|
.contains(value) || localAccessMap.containsKey(RECOMMENDATION_PREFIX + type) && localAccessMap.get(RECOMMENDATION_PREFIX + type)
|
||||||
.getEntries().stream().map(DictionaryEntry::getValue).collect(toSet())
|
.getValues(false)
|
||||||
.contains(value) || localAccessMap.containsKey(RECOMMENDATION_PREFIX + type) && localAccessMap.get(RECOMMENDATION_PREFIX + type)
|
.contains(value) || localAccessMap.containsKey(RECOMMENDATION_PREFIX + type) && localAccessMap.get(RECOMMENDATION_PREFIX + type)
|
||||||
.getLocalEntries()
|
.getValues(true)
|
||||||
.contains(value);
|
.contains(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -604,9 +604,11 @@ public class Section {
|
|||||||
if (match.length() >= 3) {
|
if (match.length() >= 3) {
|
||||||
localDictionaryAdds.computeIfAbsent(RECOMMENDATION_PREFIX + type, (x) -> new HashSet<>())
|
localDictionaryAdds.computeIfAbsent(RECOMMENDATION_PREFIX + type, (x) -> new HashSet<>())
|
||||||
.add(match);
|
.add(match);
|
||||||
|
log.info("Added match {} to dictionary {}", match, RECOMMENDATION_PREFIX + type);
|
||||||
String lastname = match.split(" ")[0];
|
String lastname = match.split(" ")[0];
|
||||||
localDictionaryAdds.computeIfAbsent(RECOMMENDATION_PREFIX + type, (x) -> new HashSet<>())
|
localDictionaryAdds.computeIfAbsent(RECOMMENDATION_PREFIX + type, (x) -> new HashSet<>())
|
||||||
.add(lastname);
|
.add(lastname);
|
||||||
|
log.info("Added lastname {} to dictionary {}", lastname, RECOMMENDATION_PREFIX + type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user