Example #1
0
 int MapCountObjRefs(StreamObj obj) {
   int h = obj.hashCode();
   int iCount = 0;
   if (mapNodes.containsKey(h)) {
     Set<ISBNode> s = mapNodes.get(h);
     ISBNode n;
     Iterator<ISBNode> i = s.iterator();
     while (i.hasNext()) {
       n = i.next();
       if (n.obj.equals(obj)) iCount++;
     }
   }
   return iCount;
 }
Example #2
0
 Vector<ISBNode> MapGetNodes(StreamObj obj) {
   int h = obj.hashCode();
   Vector<ISBNode> v = new Vector<ISBNode>();
   if (mapNodes.containsKey(h)) {
     Set<ISBNode> s = mapNodes.get(h);
     ISBNode node;
     Iterator<ISBNode> i = s.iterator();
     while (i.hasNext()) {
       node = i.next();
       if (node.obj.equals(obj)) v.add(node);
     }
   }
   return v;
 }