Interface ModifiableIndex<V>

All Superinterfaces:
Index<V>, Iterable<Map.Entry<IndexKey,V>>
All Known Subinterfaces:
UpdatableIndex<V>

public interface ModifiableIndex<V> extends Index<V>
Represents an Index that can be modified using put and remove functions.
  • Method Details

    • put

      boolean put(@Nonnull IndexKey key, @Nonnull V value)
      Adds the given key element or updates the ObjRef if the IndexKey already existed.
      Returns:
      true if the IndexKey didn't exist or false if the key was already present and the operation only updated the ObjRef.
    • remove

      boolean remove(@Nonnull IndexKey key)
      Removes the index element for the given key.
      Returns:
      true if the IndexKey did exist and was removed, false otherwise.