Class HugeSparseLongArray.Builder

  • Enclosing class:
    HugeSparseLongArray

    public static final class HugeSparseLongArray.Builder
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      HugeSparseLongArray build()  
      void set​(long index, long value)  
      boolean setIfAbsent​(long index, long value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • set

        public void set​(long index,
                        long value)
      • setIfAbsent

        public boolean setIfAbsent​(long index,
                                   long value)
        Returns:
        true iff the value was absent and was added, false if there already was a value at this position.