Package 

Class MapWithDefaultCompanion

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final E default
      private final Set<K> keys
    • Method Summary

      Modifier and Type Method Description
      final E getDefault()
      final Set<K> getKeys()
      final E getOrDefault(K key) Returns the element matching the key, or the default value as a fallback.
      E invoke(K key) Alias to getOrDefault, to be used like keyMapper("a_key").
      E from(K key)
      • Methods inherited from class org.readium.r2.shared.util.MapWithDefaultCompanion

        get
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait