@@ -293,13 +293,13 @@ func (nm *NamedMapClient[K, V]) AddKeyListenerLite(ctx context.Context, listener
293293 return nm .getBaseClient ().eventManager .addKeyListener (ctx , listener , key , true )
294294}
295295
296- // Clear removes all mappings from this [NamedMap]. This operation is observable and will
296+ // Clear removes all mappings from the [NamedMap]. This operation is observable and will
297297// trigger any registered events.
298298func (nm * NamedMapClient [K , V ]) Clear (ctx context.Context ) error {
299299 return executeClear [K , V ](ctx , & nm .baseClient )
300300}
301301
302- // Truncate removes all mappings from this [NamedMap].
302+ // Truncate removes all mappings from the [NamedMap].
303303// Note: the removal of entries caused by this truncate operation will not be observable.
304304func (nm * NamedMapClient [K , V ]) Truncate (ctx context.Context ) error {
305305 return executeTruncate [K , V ](ctx , & nm .baseClient )
@@ -359,7 +359,7 @@ func (nm *NamedMapClient[K, V]) Release() {
359359 }
360360}
361361
362- // ContainsKey returns true if this [NamedMap] contains a mapping for the specified key.
362+ // ContainsKey returns true if the [NamedMap] contains a mapping for the specified key.
363363//
364364// The example below shows how to check if a [NamedMap] contains a mapping for the key 1.
365365//
@@ -375,7 +375,7 @@ func (nm *NamedMapClient[K, V]) ContainsKey(ctx context.Context, key K) (bool, e
375375 return executeContainsKey (ctx , & nm .baseClient , key )
376376}
377377
378- // ContainsValue returns true if this [NamedMap] contains a mapping for the specified value.
378+ // ContainsValue returns true if the [NamedMap] contains a mapping for the specified value.
379379//
380380// The example below shows how to check if a [NamedMap] contains a mapping for the person.
381381//
@@ -392,7 +392,7 @@ func (nm *NamedMapClient[K, V]) ContainsValue(ctx context.Context, value V) (boo
392392 return executeContainsValue (ctx , & nm .baseClient , value )
393393}
394394
395- // ContainsEntry returns true if this [NamedMap] contains a mapping for the specified key and value.
395+ // ContainsEntry returns true if the [NamedMap] contains a mapping for the specified key and value.
396396//
397397// The example below shows how to check if a [NamedMap] contains a mapping for the key 1 and person.
398398//
@@ -409,7 +409,7 @@ func (nm *NamedMapClient[K, V]) ContainsEntry(ctx context.Context, key K, value
409409 return executeContainsEntry (ctx , & nm .baseClient , key , value )
410410}
411411
412- // IsEmpty returns true if this [NamedMap] contains no mappings.
412+ // IsEmpty returns true if the [NamedMap] contains no mappings.
413413func (nm * NamedMapClient [K , V ]) IsEmpty (ctx context.Context ) (bool , error ) {
414414 return executeIsEmpty (ctx , & nm .baseClient )
415415}
@@ -462,7 +462,7 @@ func (nm *NamedMapClient[K, V]) EntrySet(ctx context.Context) <-chan *StreamedEn
462462}
463463
464464// Get returns the value to which the specified key is mapped. V will be nil
465- // if this [NamedMap] contains no mapping for the key.
465+ // if the [NamedMap] contains no mapping for the key.
466466//
467467// namedMap, err := coherence.NewNamedMap[int, Person](session, "people")
468468// if err != nil {
@@ -565,7 +565,7 @@ func (nm *NamedMapClient[K, V]) Name() string {
565565 return nm .name
566566}
567567
568- // PutAll copies all the mappings from the specified map to this [NamedMap].
568+ // PutAll copies all the mappings from the specified map to the [NamedMap].
569569// This is the most efficient way to add multiple entries into a [NamedMap] as it
570570// is carried out in parallel and no previous values are returned.
571571//
@@ -600,7 +600,7 @@ func (nm *NamedMapClient[K, V]) Put(ctx context.Context, key K, value V) (*V, er
600600 return executePutWithExpiry (ctx , & nm .baseClient , key , value , time .Duration (0 ))
601601}
602602
603- // Remove removes the mapping for a key from this [NamedMap] if it is present and
603+ // Remove removes the mapping for a key from the [NamedMap] if it is present and
604604// returns the previous value or nil if there wasn't one.
605605//
606606// namedMap, err := coherence.NewNamedMap[int, Person](session, "people")
@@ -666,12 +666,12 @@ func (nm *NamedMapClient[K, V]) GetSession() *Session {
666666 return nm .session
667667}
668668
669- // Size returns the number of mappings contained within this [NamedMap].
669+ // Size returns the number of mappings contained within the [NamedMap].
670670func (nm * NamedMapClient [K , V ]) Size (ctx context.Context ) (int , error ) {
671671 return executeSize (ctx , & nm .baseClient )
672672}
673673
674- // ValuesFilter returns a view of filtered values contained in this [NamedMap].
674+ // ValuesFilter returns a view of filtered values contained in the [NamedMap].
675675// The returned channel will be asynchronously filled with values in the
676676// [NamedMap] that satisfy the filter.
677677//
@@ -694,7 +694,7 @@ func (nm *NamedMapClient[K, V]) ValuesFilter(ctx context.Context, fltr filters.F
694694 return executeValues (ctx , & nm .baseClient , fltr )
695695}
696696
697- // Values returns a view of all values contained in this [NamedMap].
697+ // Values returns a view of all values contained in the [NamedMap].
698698//
699699// Note: the entries are paged internally to avoid excessive memory usage, but you need to be
700700// careful when running this operation against [NamedMap]s with large number of entries.
0 commit comments