Class SimplePropertyBag<TKey>
- java.lang.Object
-
- microsoft.exchange.webservices.data.core.SimplePropertyBag<TKey>
-
-
Constructor Summary
Constructors Constructor Description SimplePropertyBag()Initializes a new instance of the class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOnChangeEvent(IPropertyBagChangedDelegate<TKey> change)Set event to happen when property changed.voidclearChangeLog()Clears the change log.booleancontainsKey(TKey key)Determines whether the specified key is in the property bag.Iterable<TKey>getAddedItems()Gets the added item.Iterable<TKey>getModifiedItems()Gets the modified item.Iterable<TKey>getRemovedItems()Gets the removed item.ObjectgetSimplePropertyBag(TKey key)Gets the simple property bag.Iterator<HashMap<TKey,Object>>iterator()Returns an iterator over a set of elements of type T.voidremoveChangeEvent(IPropertyBagChangedDelegate<TKey> change)Remove the event from happening when property changed.voidsetSimplePropertyBag(TKey key, Object value)Sets the simple property bag.booleantryGetValue(TKey key, OutParam<Object> value)Tries to get value.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
SimplePropertyBag
public SimplePropertyBag()
Initializes a new instance of the class.
-
-
Method Detail
-
getAddedItems
public Iterable<TKey> getAddedItems()
Gets the added item.- Returns:
- the added item
-
getRemovedItems
public Iterable<TKey> getRemovedItems()
Gets the removed item.- Returns:
- the removed item
-
getModifiedItems
public Iterable<TKey> getModifiedItems()
Gets the modified item.- Returns:
- the modified item
-
clearChangeLog
public void clearChangeLog()
Clears the change log.
-
containsKey
public boolean containsKey(TKey key)
Determines whether the specified key is in the property bag.- Parameters:
key- the key- Returns:
- true, if successful if the specified key exists; otherwise, .
-
tryGetValue
public boolean tryGetValue(TKey key, OutParam<Object> value)
Tries to get value.- Parameters:
key- the keyvalue- the value- Returns:
- True if value exists in property bag.
-
getSimplePropertyBag
public Object getSimplePropertyBag(TKey key)
Gets the simple property bag.- Parameters:
key- the key- Returns:
- the simple property bag
-
setSimplePropertyBag
public void setSimplePropertyBag(TKey key, Object value)
Sets the simple property bag.- Parameters:
key- the keyvalue- the value
-
addOnChangeEvent
public void addOnChangeEvent(IPropertyBagChangedDelegate<TKey> change)
Set event to happen when property changed.- Parameters:
change- change event
-
removeChangeEvent
public void removeChangeEvent(IPropertyBagChangedDelegate<TKey> change)
Remove the event from happening when property changed.- Parameters:
change- change event
-
-