O'Reilly logo

IBM WebSphere eXtreme Scale 6 by Anthony Chaves

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Wrapping up

There are two more methods that we need to cover before wrapping up this chapter. They are the insert(Object key, Object value) and update(Object key, Object value) methods.

The insert(Object key, Object value) method will attempt to insert a new value into a BackingMap. This method will never update an object with its key that already exists in the BackingMap. If the key already exists in the BackingMap, then a DuplicateKeyException is thrown. A call to the insert(Object key, Object value) method is telling a BackingMap that we expect to put a new key/value pair in, or do nothing if that key already exists. Insert means insert a new key/value pair, not update a key/value pair.

The update(Object key, Object value) method requires that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required