Package com._1c.g5.v8.dt.bm.xtext
Class XtextBmLinkProvider.UriResourceContainerCache.CacheItem
- java.lang.Object
-
- com._1c.g5.v8.dt.bm.xtext.XtextBmLinkProvider.UriResourceContainerCache.CacheItem
-
- All Implemented Interfaces:
Comparable<XtextBmLinkProvider.UriResourceContainerCache.CacheItem>
- Enclosing class:
- XtextBmLinkProvider.UriResourceContainerCache
protected static class XtextBmLinkProvider.UriResourceContainerCache.CacheItem extends Object implements Comparable<XtextBmLinkProvider.UriResourceContainerCache.CacheItem>
Special class representing element of cache
-
-
Constructor Summary
Constructors Constructor Description CacheItem(org.eclipse.emf.ecore.resource.Resource resource, int weight)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(XtextBmLinkProvider.UriResourceContainerCache.CacheItem item)
int
computeUtility()
Computes utility of caching element
-
-
-
Constructor Detail
-
CacheItem
public CacheItem(org.eclipse.emf.ecore.resource.Resource resource, int weight)
Constructor- Parameters:
resource
- cachingResource
weight
- weight of the caching element. SeeXtextBmLinkProvider.UriResourceContainerCache.getUriWeight(URI)
-
-
Method Detail
-
computeUtility
public int computeUtility()
Computes utility of caching element- Returns:
- utility of caching element
-
compareTo
public int compareTo(XtextBmLinkProvider.UriResourceContainerCache.CacheItem item)
- Specified by:
compareTo
in interfaceComparable<XtextBmLinkProvider.UriResourceContainerCache.CacheItem>
-
-