Class ImmutableLongMap<A>


  • public class ImmutableLongMap<A>
    extends java.lang.Object
    Worst case O(log n), allocation free.
    • Constructor Detail

      • ImmutableLongMap

        public ImmutableLongMap()
    • Method Detail

      • empty

        public static <A> ImmutableLongMap<A> empty​(scala.reflect.ClassTag<A> t)
      • size

        public int size()
      • get

        public OptionVal<A> get​(long key)
        Worst case O(log n), allocation free.
        Parameters:
        key - (undocumented)
        Returns:
        (undocumented)
      • contains

        public boolean contains​(long key)
        Worst case O(log n), allocation free.
        Parameters:
        key - (undocumented)
        Returns:
        (undocumented)
      • updated

        public ImmutableLongMap<A> updated​(long key,
                                           A value)
        Worst case O(log n), creates new ImmutableLongMap with copies of the internal arrays for the keys and values.
        Parameters:
        key - (undocumented)
        value - (undocumented)
        Returns:
        (undocumented)
      • keysIterator

        public scala.collection.Iterator<java.lang.Object> keysIterator()
        All keys
        Returns:
        (undocumented)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object