public interface IBodyCache
IElement
,
Body
,
ElementManager
,
ElementCache
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(IElement element)
Returns the corresponding body for the given element, or
null if this cache contains no body for the element. |
java.lang.Object |
peek(IElement element)
Returns the corresponding body for the given element without disturbing
cache ordering, or
null if this cache contains no body for
the element. |
void |
put(IElement element,
java.lang.Object body)
Remembers the given body for the given element in this cache.
|
default void |
putAll(java.util.Map<? extends IElement,java.lang.Object> elementBodies)
Remembers the given element handle/body relationships in this cache.
|
void |
remove(IElement element)
Removes the corresponding body for the given element from this cache.
|
java.lang.Object get(IElement element)
null
if this cache contains no body for the element.element
- the element whose body is to be returnednull
if the cache contains no body for the elementjava.lang.Object peek(IElement element)
null
if this cache contains no body for
the element.element
- the element whose body is to be returnednull
if the cache contains no body for the elementvoid put(IElement element, java.lang.Object body)
element
- the element with which the given body is to be associated
(not null
)body
- the body to be associated with the given element
(not null
)default void putAll(java.util.Map<? extends IElement,java.lang.Object> elementBodies)
elementBodies
- element handle/body relationships to be stored
in the cache (not null
)void remove(IElement element)
element
- the element whose body is to be removed from the cacheCopyright (c) 2014, 2019 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0