Class NgramsForOrderMapWrapper<W,V>
- Type Parameters:
W-V-
Wraps an NgramMap as a Java Map, but only ngrams of a particular order. This
collection is read-only. It is also uses a lot inefficient boxing and
unboxing.
- Author:
- adampauls
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
ConstructorsConstructorDescriptionNgramsForOrderMapWrapper(NgramMap<V> map, WordIndexer<W> wordIndexer, int ngramOrder) -
Method Summary
Methods inherited from class AbstractMap
clear, clone, containsValue, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, valuesMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
NgramsForOrderMapWrapper
- Parameters:
map-ngramOrder- 0-based, i.e. 0 means unigrams
-
-
Method Details
-
get
-
containsKey
- Specified by:
containsKeyin interfaceMap<W,V> - Overrides:
containsKeyin classAbstractMap<List<W>,V>
-
entrySet
-