Package akka.remote.artery
Class ImmutableLongMap<A>
- java.lang.Object
-
- akka.remote.artery.ImmutableLongMap<A>
-
public class ImmutableLongMap<A> extends java.lang.Object
Worst caseO(log n)
, allocation free.
-
-
Constructor Summary
Constructors Constructor Description ImmutableLongMap()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(long key)
Worst caseO(log n)
, allocation free.static <A> ImmutableLongMap<A>
empty(scala.reflect.ClassTag<A> t)
boolean
equals(java.lang.Object obj)
OptionVal<A>
get(long key)
Worst caseO(log n)
, allocation free.int
hashCode()
scala.collection.Iterator<java.lang.Object>
keysIterator()
All keysImmutableLongMap<A>
remove(long key)
int
size()
java.lang.String
toString()
ImmutableLongMap<A>
updated(long key, A value)
Worst caseO(log n)
, creates newImmutableLongMap
with copies of the internal arrays for the keys and values.
-
-
-
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 caseO(log n)
, allocation free.- Parameters:
key
- (undocumented)- Returns:
- (undocumented)
-
contains
public boolean contains(long key)
Worst caseO(log n)
, allocation free.- Parameters:
key
- (undocumented)- Returns:
- (undocumented)
-
updated
public ImmutableLongMap<A> updated(long key, A value)
Worst caseO(log n)
, creates newImmutableLongMap
with copies of the internal arrays for the keys and values.- Parameters:
key
- (undocumented)value
- (undocumented)- Returns:
- (undocumented)
-
remove
public ImmutableLongMap<A> remove(long key)
-
keysIterator
public scala.collection.Iterator<java.lang.Object> keysIterator()
All keys- Returns:
- (undocumented)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-