edu.utah.janos.nodeos
Class CommHashtableHandle
java.lang.Object
|
+--edu.utah.janosvm.sys.ListNode
|
+--edu.utah.janosvm.sys.Importable
|
+--edu.utah.janos.nodeos.CommHashtableHandle
- public class CommHashtableHandle
- extends edu.utah.janosvm.sys.Importable
A handle for a CommHashtable that may be in another Flow.
Fields inherited from class edu.utah.janosvm.sys.ListNode |
pred,
succ |
Methods inherited from class edu.utah.janosvm.sys.Importable |
clone,
equals,
pointsTo |
Methods inherited from class edu.utah.janosvm.sys.ListNode |
append,
prepend,
remove |
Methods inherited from class java.lang.Object |
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
CommHashtableHandle
public CommHashtableHandle()
- Construct a new CommHashtable and attach this handle to it.
CommHashtableHandle
public CommHashtableHandle(CommHashtableHandle chh)
- Copy constructor.
- Parameters:
chh
- The handle to copy.
put
public CommSpaceElement put(CommSpaceElement id,
CommSpaceElement val)
- Parameters:
id
- Identifier to be paired with a valueval
- Value to pair with an identifier- Returns:
- The element that was previously paired with the identifier.
lookup
public CommSpaceElement lookup(CommSpaceElement id)
- Parameters:
id
- The identifier to lookup in the hash table.- Returns:
- Null or the element that is paired with the given identifier
remove
public void remove(CommSpaceElement id)
- Parameters:
id
- The identifier to remove from the hash table.
containsKey
public boolean containsKey(CommSpaceElement id)
- Parameters:
id
- The identifier to check for in the hash table.- Returns:
- True if the identifier was found in the table, false
otherwise.
This documentation is Copyright (C) 1998-2001 The University of Utah. All Rights Reserved. See the file LICENSE for distribution terms.
Documentation, software, and mailing list archives for Janos can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/