Package 

Class EmptyContainer

  • All Implemented Interfaces:
    kotlin.collections.Iterable , org.readium.r2.shared.util.SuspendingCloseable , org.readium.r2.shared.util.data.Container

    
    public final class EmptyContainer<E extends Readable>
     implements Container<E>
                        

    A Container providing no entries at all.

    • Constructor Summary

      Constructors 
      Constructor Description
      EmptyContainer()
    • Method Summary

      Modifier and Type Method Description
      Set<Url> getEntries() List of all the container entries.
      AbsoluteUrl getSourceUrl()
      E get(Url url) Returns the entry at the given url or null if there is none.
      Unit close() Closes this object and releases any resources associated with it.
      • Methods inherited from class org.readium.r2.shared.util.data.EmptyContainer

        iterator
      • Methods inherited from class org.readium.r2.shared.util.data.Container

        forEach, spliterator
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EmptyContainer

        EmptyContainer()
    • Method Detail

      • get

         E get(Url url)

        Returns the entry at the given url or null if there is none.

      • close

         Unit close()

        Closes this object and releases any resources associated with it. If the object is already closed then invoking this method has no effect.