Constructor and Description |
---|
SimplePropertyBag()
Initializes a new instance of the class.
|
Modifier and Type | Method and Description |
---|---|
void |
addOnChangeEvent(IPropertyBagChangedDelegate<TKey> change)
Set event to happen when property changed.
|
void |
clearChangeLog()
Clears the change log.
|
boolean |
containsKey(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.
|
Object |
getSimplePropertyBag(TKey key)
Gets the simple property bag.
|
Iterator<HashMap<TKey,Object>> |
iterator()
Returns an iterator over a set of elements of type T.
|
void |
removeChangeEvent(IPropertyBagChangedDelegate<TKey> change)
Remove the event from happening when property changed.
|
void |
setSimplePropertyBag(TKey key,
Object value)
Sets the simple property bag.
|
boolean |
tryGetValue(TKey key,
OutParam<Object> value)
Tries to get value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public SimplePropertyBag()
public Iterable<TKey> getAddedItems()
public Iterable<TKey> getRemovedItems()
public Iterable<TKey> getModifiedItems()
public void clearChangeLog()
public boolean containsKey(TKey key)
key
- the keypublic boolean tryGetValue(TKey key, OutParam<Object> value)
key
- the keyvalue
- the valuepublic Object getSimplePropertyBag(TKey key)
key
- the keypublic void setSimplePropertyBag(TKey key, Object value)
key
- the keyvalue
- the valuepublic void addOnChangeEvent(IPropertyBagChangedDelegate<TKey> change)
change
- change eventpublic void removeChangeEvent(IPropertyBagChangedDelegate<TKey> change)
change
- change eventCopyright © 2012–2015 Microsoft. All rights reserved.