Interface ArrayDeleteMapper<K,T>

All Superinterfaces:
ArraySizeMapper<T>
All Known Implementing Classes:
HashMap, HashSet

public interface ArrayDeleteMapper<K,T> extends ArraySizeMapper<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    mappedDelete(T current, K key)
    Called during delete operation to delete a key from a mapping.

    Methods inherited from interface org.javimmutable.collections.array.ArraySizeMapper

    mappedSize
  • Method Details

    • mappedDelete

      @Nullable T mappedDelete(@Nonnull T current, @Nonnull K key)
      Called during delete operation to delete a key from a mapping.
      Parameters:
      current - mapping to be replaced
      key - key being deleted
      Returns:
      null to remove mapping, same to keep mapping, or non-null to replace mapping