Package org.jcsp.net
Class ChannelIndexMap
java.lang.Object
org.jcsp.net.ChannelIndexMap
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private ChannelIndexMap.Entry[]
private ChannelIndexMap.Entry
private float
private int
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
get
(long key) boolean
put
(long key, SharedChannelOutput value) Puts a value into the index if the key does not already exist.private void
rehash()
boolean
remove
(long key, SharedChannelOutput ch)
-
Field Details
-
threshold
private int threshold -
count
private int count -
loadFactor
private float loadFactor -
size
private int size -
data
-
entryPool
-
-
Constructor Details
-
ChannelIndexMap
public ChannelIndexMap(int size, float loadFactor)
-
-
Method Details
-
get
-
rehash
private void rehash() -
getChannels
-
emptyPool
public void emptyPool()
-