org.eclipse.core.internal.events
Class NodeIDMap

java.lang.Object
  extended by org.eclipse.core.internal.events.NodeIDMap

public class NodeIDMap
extends java.lang.Object

A specialized map that maps Node IDs to their old and new paths. Used for calculating moves during resource change notification.


Constructor Summary
NodeIDMap()
          Creates a new node ID map of default capacity.
 
Method Summary
 org.eclipse.core.runtime.IPath getNewPath(long nodeID)
          Returns the new path location for the given ID, or null if no new path is available.
 org.eclipse.core.runtime.IPath getOldPath(long nodeID)
          Returns the old path location for the given ID, or null if no old path is available.
 boolean isEmpty()
          Returns true if there are no elements in the map, and false otherwise.
 void putNewPath(long id, org.eclipse.core.runtime.IPath path)
          Adds an entry for a node's old path
 void putOldPath(long id, org.eclipse.core.runtime.IPath path)
          Adds an entry for a node's old path
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeIDMap

public NodeIDMap()
Creates a new node ID map of default capacity.

Method Detail

getNewPath

public org.eclipse.core.runtime.IPath getNewPath(long nodeID)
Returns the new path location for the given ID, or null if no new path is available.


getOldPath

public org.eclipse.core.runtime.IPath getOldPath(long nodeID)
Returns the old path location for the given ID, or null if no old path is available.


isEmpty

public boolean isEmpty()
Returns true if there are no elements in the map, and false otherwise.


putOldPath

public void putOldPath(long id,
                       org.eclipse.core.runtime.IPath path)
Adds an entry for a node's old path


putNewPath

public void putNewPath(long id,
                       org.eclipse.core.runtime.IPath path)
Adds an entry for a node's old path