java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.nd.util.PathMap<T>

public class PathMap<T> extends Object
Maps IPath keys onto values.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    containsKeyStartingWith​(org.eclipse.core.runtime.IPath next)
    Returns true iff this map contains any key that starts with the given prefix.
    boolean
    containsPrefixOf​(org.eclipse.core.runtime.IPath path)
    Returns true iff any key in this map is a prefix of the given path.
    get​(org.eclipse.core.runtime.IPath key)
    Returns the value associated with the given key
    getMostSpecific​(org.eclipse.core.runtime.IPath key)
    Returns the value associated with the longest prefix of the given key that can be found in the map.
    Set<org.eclipse.core.runtime.IPath>
     
    put​(org.eclipse.core.runtime.IPath key, T value)
    Inserts the given key into the map.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PathMap

      public PathMap()
  • Method Details

    • put

      public T put(org.eclipse.core.runtime.IPath key, T value)
      Inserts the given key into the map.
    • get

      public T get(org.eclipse.core.runtime.IPath key)
      Returns the value associated with the given key
    • getMostSpecific

      public T getMostSpecific(org.eclipse.core.runtime.IPath key)
      Returns the value associated with the longest prefix of the given key that can be found in the map.
    • containsPrefixOf

      public boolean containsPrefixOf(org.eclipse.core.runtime.IPath path)
      Returns true iff any key in this map is a prefix of the given path.
    • keySet

      public Set<org.eclipse.core.runtime.IPath> keySet()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • containsKeyStartingWith

      public boolean containsKeyStartingWith(org.eclipse.core.runtime.IPath next)
      Returns true iff this map contains any key that starts with the given prefix.