Class IndexFunction<K,V>

java.lang.Object
org.infinispan.multimap.impl.function.list.IndexFunction<K,V>
All Implemented Interfaces:
Serializable, Function<org.infinispan.functional.EntryView.ReadWriteEntryView<K,ListBucket<V>>,V>, ListBucketBaseFunction<K,V,V>, org.infinispan.util.function.SerializableFunction<org.infinispan.functional.EntryView.ReadWriteEntryView<K,ListBucket<V>>,V>

public final class IndexFunction<K,V> extends Object implements ListBucketBaseFunction<K,V,V>
Serializable function used by EmbeddedMultimapListCache.index(Object, long) to retrieve the index at the head or the tail of the multimap list value.
Since:
15.0
Author:
Katia Aresti
See Also:
  • Field Details

    • EXTERNALIZER

      public static final org.infinispan.commons.marshall.AdvancedExternalizer<IndexFunction> EXTERNALIZER
  • Constructor Details

    • IndexFunction

      public IndexFunction(long index)
  • Method Details

    • apply

      public V apply(org.infinispan.functional.EntryView.ReadWriteEntryView<K,ListBucket<V>> entryView)
      Specified by:
      apply in interface Function<K,V>