Package org.onosproject.store.primitives
Class MapUpdate<K,V>
- java.lang.Object
- 
- org.onosproject.store.primitives.MapUpdate<K,V>
 
- 
- Type Parameters:
- K- map key type
- V- map value type
 
 public final class MapUpdate<K,V> extends java.lang.ObjectMap update operation.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classMapUpdate.Builder<K,V>MapUpdate builder.static classMapUpdate.TypeType of database update operation.
 - 
Constructor SummaryConstructors Constructor Description MapUpdate()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object object)inthashCode()Kkey()Returns the item key being updated.<S,T>
 MapUpdate<S,T>map(java.util.function.Function<K,S> keyMapper, java.util.function.Function<V,T> valueMapper)Transforms this instance into an instance of different parameterized types.static <K,V>
 MapUpdate.Builder<K,V>newBuilder()Creates a new builder instance.java.lang.StringtoString()MapUpdate.Typetype()Returns the type of update operation.Vvalue()Returns the new value.longversion()Returns the expected current version in the database for the key.
 
- 
- 
- 
Method Detail- 
typepublic MapUpdate.Type type() Returns the type of update operation.- Returns:
- type of update.
 
 - 
keypublic K key() Returns the item key being updated.- Returns:
- item key
 
 - 
valuepublic V value() Returns the new value.- Returns:
- item's target value.
 
 - 
versionpublic long version() Returns the expected current version in the database for the key.- Returns:
- expected version.
 
 - 
mappublic <S,T> MapUpdate<S,T> map(java.util.function.Function<K,S> keyMapper, java.util.function.Function<V,T> valueMapper) Transforms this instance into an instance of different parameterized types.- Type Parameters:
- S- key type of returned instance
- T- value type of returned instance
- Parameters:
- keyMapper- transcoder for key type
- valueMapper- transcoder to value type
- Returns:
- new instance
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object object) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
newBuilderpublic static <K,V> MapUpdate.Builder<K,V> newBuilder() Creates a new builder instance.- Type Parameters:
- K- key type
- V- value type
- Returns:
- builder.
 
 
- 
 
-