Interface IIndexSlice
- 
- All Known Implementing Classes:
- IndexSlice
 
 public interface IIndexSliceSpecial interface for index slice. This interface provides method for adding, deleting and finding index element in slice.
 Also this interface provides special mechanism of identification type of index slice byISliceFilter- see methodgetPredicate()
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaddItem(long id, org.eclipse.xtext.resource.IEObjectDescription item)Tries to add index element to index sliceSet<Long>getItems()Gets unique ids of index elements contained in this index sliceISliceFiltergetPredicate()Gets specialISliceFilterthat determines elements in this index slice.booleanremoveItem(long id)Tries to delete index element from index slice
 
- 
- 
- 
Method Detail- 
getItemsSet<Long> getItems() Gets unique ids of index elements contained in this index slice- Returns:
- unique ids of index elements contained in this index slice, never null
 
 - 
addItemboolean addItem(long id, org.eclipse.xtext.resource.IEObjectDescription item)Tries to add index element to index slice- Parameters:
- id- special unique id for adding index element
- item- index element for adding to index slice, can't be- null
- Returns:
- trueif index element was added to slice,- falseif index element is not supported of this index slice. If index already has contained element with the same- idthen- falsewill be returned and index won't change Supporting index items are determined by predicate from- getPredicate()
 
 - 
removeItemboolean removeItem(long id) Tries to delete index element from index slice- Parameters:
- id- special unique id for deleting index element
- Returns:
- trueif item was succeeded deleted,- falseotherwise
 
 - 
getPredicateISliceFilter getPredicate() Gets specialISliceFilterthat determines elements in this index slice. ThisISliceFilteris id of slice type- Returns:
- special ISliceFilterthat determines elements in this index slice, can't benull
 
 
- 
 
-