Package io.deephaven.base.map
Class FastArrayMapLongToObject<V extends Externalizable & Copyable<V>>
java.lang.Object
io.deephaven.base.map.FastArrayMapLongToObject<V>
- All Implemented Interfaces:
Copyable<FastArrayMapLongToObject<V>>
,SafeCloneable<FastArrayMapLongToObject<V>>
,Cloneable
public class FastArrayMapLongToObject<V extends Externalizable & Copyable<V>>
extends Object
implements Copyable<FastArrayMapLongToObject<V>>
-
Constructor Summary
ConstructorDescriptionFastArrayMapLongToObject
(Supplier<? extends KeyValuePairLongToObject<V>> newInstance) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
containsKey
(long key) void
copyValues
(FastArrayMapLongToObject<V> other) boolean
get
(long key) getArray()
int
hashCode()
boolean
isEmpty()
static <V extends Externalizable & Copyable<V>>
voidreadExternal
(FastArrayMapLongToObject<V> THIS, ObjectInput in, FastArray.ReadExternalFunction<KeyValuePairLongToObject<V>> readExternalFunction) remove
(long key) int
size()
toString()
toStringXml
(String pre) static <V extends Externalizable & Copyable<V>>
voidwriteExternal
(FastArrayMapLongToObject<V> THIS, ObjectOutput out, FastArray.WriteExternalFunction<KeyValuePairLongToObject<V>> writeExternalFunction)
-
Constructor Details
-
FastArrayMapLongToObject
public FastArrayMapLongToObject() -
FastArrayMapLongToObject
-
-
Method Details
-
getArray
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
public boolean containsKey(long key) -
get
-
put
-
remove
-
clear
public void clear() -
cloneDeep
-
writeExternal
public static <V extends Externalizable & Copyable<V>> void writeExternal(FastArrayMapLongToObject<V> THIS, ObjectOutput out, FastArray.WriteExternalFunction<KeyValuePairLongToObject<V>> writeExternalFunction) throws IOException - Throws:
IOException
-
readExternal
public static <V extends Externalizable & Copyable<V>> void readExternal(FastArrayMapLongToObject<V> THIS, ObjectInput in, FastArray.ReadExternalFunction<KeyValuePairLongToObject<V>> readExternalFunction) throws IOException, ClassNotFoundException - Throws:
IOException
ClassNotFoundException
-
equals
-
hashCode
public int hashCode() -
toString
-
toStringXml
-
copyValues
- Specified by:
copyValues
in interfaceCopyable<V extends Externalizable & Copyable<V>>
-
safeClone
- Specified by:
safeClone
in interfaceSafeCloneable<V extends Externalizable & Copyable<V>>
-