Class ImmutableOpenIntMap.Builder<VType>

java.lang.Object
org.elasticsearch.common.collect.ImmutableOpenIntMap.Builder<VType>
All Implemented Interfaces:
com.carrotsearch.hppc.IntObjectAssociativeContainer<VType>, com.carrotsearch.hppc.IntObjectMap<VType>, Iterable<com.carrotsearch.hppc.cursors.IntObjectCursor<VType>>
Enclosing class:
ImmutableOpenIntMap<VType>

public static class ImmutableOpenIntMap.Builder<VType> extends Object implements com.carrotsearch.hppc.IntObjectMap<VType>
  • Constructor Details

  • Method Details

    • build

      public ImmutableOpenIntMap<VType> build()
      Builds a new instance of the
    • putAll

      Puts all the entries in the map to the builder.
    • fPut

      public ImmutableOpenIntMap.Builder<VType> fPut(int key, VType value)
      A put operation that can be used in the fluent pattern.
    • put

      public VType put(int key, VType value)
      Specified by:
      put in interface com.carrotsearch.hppc.IntObjectMap<VType>
    • get

      public VType get(int key)
      Specified by:
      get in interface com.carrotsearch.hppc.IntObjectMap<VType>
    • getOrDefault

      public VType getOrDefault(int kType, VType vType)
      Specified by:
      getOrDefault in interface com.carrotsearch.hppc.IntObjectMap<VType>
    • fRemove

      public ImmutableOpenIntMap.Builder<VType> fRemove(int key)
      Remove that can be used in the fluent pattern.
    • remove

      public VType remove(int key)
      Specified by:
      remove in interface com.carrotsearch.hppc.IntObjectMap<VType>
    • iterator

      public Iterator<com.carrotsearch.hppc.cursors.IntObjectCursor<VType>> iterator()
      Specified by:
      iterator in interface com.carrotsearch.hppc.IntObjectAssociativeContainer<VType>
      Specified by:
      iterator in interface Iterable<VType>
    • containsKey

      public boolean containsKey(int key)
      Specified by:
      containsKey in interface com.carrotsearch.hppc.IntObjectAssociativeContainer<VType>
    • size

      public int size()
      Specified by:
      size in interface com.carrotsearch.hppc.IntObjectAssociativeContainer<VType>
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface com.carrotsearch.hppc.IntObjectAssociativeContainer<VType>
    • clear

      public void clear()
      Specified by:
      clear in interface com.carrotsearch.hppc.IntObjectMap<VType>
    • putAll

      public int putAll(com.carrotsearch.hppc.IntObjectAssociativeContainer<? extends VType> container)
      Specified by:
      putAll in interface com.carrotsearch.hppc.IntObjectMap<VType>
    • putAll

      public int putAll(Iterable<? extends com.carrotsearch.hppc.cursors.IntObjectCursor<? extends VType>> iterable)
      Specified by:
      putAll in interface com.carrotsearch.hppc.IntObjectMap<VType>
    • removeAll

      public int removeAll(com.carrotsearch.hppc.IntContainer container)
      Specified by:
      removeAll in interface com.carrotsearch.hppc.IntObjectAssociativeContainer<VType>
    • removeAll

      public int removeAll(com.carrotsearch.hppc.predicates.IntPredicate predicate)
      Specified by:
      removeAll in interface com.carrotsearch.hppc.IntObjectAssociativeContainer<VType>
    • forEach

      public <T extends com.carrotsearch.hppc.procedures.IntObjectProcedure<? super VType>> T forEach(T procedure)
      Specified by:
      forEach in interface com.carrotsearch.hppc.IntObjectAssociativeContainer<VType>
    • keys

      public com.carrotsearch.hppc.IntCollection keys()
      Specified by:
      keys in interface com.carrotsearch.hppc.IntObjectAssociativeContainer<VType>
    • values

      public com.carrotsearch.hppc.ObjectContainer<VType> values()
      Specified by:
      values in interface com.carrotsearch.hppc.IntObjectAssociativeContainer<VType>
    • removeAll

      public int removeAll(com.carrotsearch.hppc.predicates.IntObjectPredicate<? super VType> predicate)
      Specified by:
      removeAll in interface com.carrotsearch.hppc.IntObjectAssociativeContainer<VType>
    • forEach

      public <T extends com.carrotsearch.hppc.predicates.IntObjectPredicate<? super VType>> T forEach(T predicate)
      Specified by:
      forEach in interface com.carrotsearch.hppc.IntObjectAssociativeContainer<VType>
    • indexOf

      public int indexOf(int key)
      Specified by:
      indexOf in interface com.carrotsearch.hppc.IntObjectMap<VType>
    • indexExists

      public boolean indexExists(int index)
      Specified by:
      indexExists in interface com.carrotsearch.hppc.IntObjectMap<VType>
    • indexGet

      public VType indexGet(int index)
      Specified by:
      indexGet in interface com.carrotsearch.hppc.IntObjectMap<VType>
    • indexReplace

      public VType indexReplace(int index, VType newValue)
      Specified by:
      indexReplace in interface com.carrotsearch.hppc.IntObjectMap<VType>
    • indexInsert

      public void indexInsert(int index, int key, VType value)
      Specified by:
      indexInsert in interface com.carrotsearch.hppc.IntObjectMap<VType>
    • release

      public void release()
      Specified by:
      release in interface com.carrotsearch.hppc.IntObjectMap<VType>
    • visualizeKeyDistribution

      public String visualizeKeyDistribution(int characters)
      Specified by:
      visualizeKeyDistribution in interface com.carrotsearch.hppc.IntObjectMap<VType>