Class IndexSlice

    • Method Detail

      • getItems

        public Set<Long> getItems()
        Description copied from interface: IIndexSlice
        Gets unique ids of index elements contained in this index slice
        Specified by:
        getItems in interface IIndexSlice
        Returns:
        unique ids of index elements contained in this index slice, never null
      • addItem

        public boolean addItem​(long id,
                               org.eclipse.xtext.resource.IEObjectDescription item)
        Description copied from interface: IIndexSlice
        Tries to add index element to index slice
        Specified by:
        addItem in interface IIndexSlice
        Parameters:
        id - special unique id for adding index element
        item - index element for adding to index slice, can't be null
        Returns:
        true if index element was added to slice, false if index element is not supported of this index slice. If index already has contained element with the same id then false will be returned and index won't change Supporting index items are determined by predicate from IIndexSlice.getPredicate()
      • removeItem

        public boolean removeItem​(long id)
        Description copied from interface: IIndexSlice
        Tries to delete index element from index slice
        Specified by:
        removeItem in interface IIndexSlice
        Parameters:
        id - special unique id for deleting index element
        Returns:
        true if item was succeeded deleted, false otherwise