Package com._1c.g5.aef2.models.map
Interface IMap<K,V>
-
- All Superinterfaces:
IModel,IValidable,Map<K,V>
- All Known Subinterfaces:
IEmfMapAttribute<K,V,O>,IMultilanguageFormattedTextModel,IMultilanguageModel
- All Known Implementing Classes:
BmMap,BmMultilanguageFormatModel,BmMultilanguageFormattedTextModel,BmMultilanguageModel,EmfMap,EmfMultilanguageFormattedTextModel,EmfMultilanguageModel,IMultilanguageFormattedTextModel.MultilanguageFormattedTextWorkingCopy,MapModel,MapWorkingCopy,PojoMap,StandardObjectMultilanguageModel
public interface IMap<K,V> extends IModel, Map<K,V>
The model of the map.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddMapListener(IMapListener<K,V> listener)Adds the map listener.IMap<K,V>createWorkingCopy()voidfill(Map<? extends K,? extends V> map)Clears the current stored map and adds all elements of the given map to the stored one.booleanisEqual(Map<K,V> other)Checks the map for equality with the current stored map.voidremoveMapListener(IMapListener<K,V> listener)Removes the map listener.-
Methods inherited from interface com._1c.g5.aef2.models.IModel
addModelListener, commit, discard, dispose, getChange, getComponent, isOnline, removeModelListener, setComponent
-
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Method Detail
-
fill
void fill(Map<? extends K,? extends V> map)
Clears the current stored map and adds all elements of the given map to the stored one.- Parameters:
map- the map to add.
-
isEqual
boolean isEqual(Map<K,V> other)
Checks the map for equality with the current stored map.- Parameters:
other- the other map to check.- Returns:
trueif other map is equal to this map,falseotherwise.
-
addMapListener
void addMapListener(IMapListener<K,V> listener)
Adds the map listener.- Parameters:
listener- the listener to add.
-
removeMapListener
void removeMapListener(IMapListener<K,V> listener)
Removes the map listener.- Parameters:
listener- the listener to add.
-
createWorkingCopy
IMap<K,V> createWorkingCopy()
- Specified by:
createWorkingCopyin interfaceIModel- Returns:
- the model working copy or
nullif working copies is not supported by the model.
-
-