Class FileAlbumObject

java.lang.Object
se.datadosen.jalbum.AlbumObjectImpl
se.datadosen.jalbum.FileAlbumObject
All Implemented Interfaces:
Transferable, Serializable, Comparable<AlbumObject>, AlbumObject

public class FileAlbumObject extends AlbumObjectImpl
Real implementation using backing file system
See Also:
  • Constructor Details

  • Method Details

    • getChildren

      public List<AlbumObject> getChildren()
      Returns:
      List of Children AlbumObjects of this AlbumObject or null if this is not a directory/folder. Will return an empty list if this is an empty directory/folder
      See Also:
    • getChildren

      public List<AlbumObject> getChildren(boolean ordered)
      Parameters:
      ordered - Pass false and ordering will not be guaranteed (performance option)
      Returns:
      List of children AlbumObjects of this AlbumObject or null if this is not a directory/folder. Will return an empty list if this is an empty directory/folder
    • setChildren

      public void setChildren(List<AlbumObject> children) throws IOException
      Description copied from interface: AlbumObject
      Set List of children AlbumObjects if this is a directory/folder
      Throws:
      IOException
    • getNameMap

      protected Map<String,AlbumObject> getNameMap()
      Description copied from class: AlbumObjectImpl
      Speed up content look-ups
      Specified by:
      getNameMap in class AlbumObjectImpl
      Returns:
    • invalidate

      public void invalidate()
      Description copied from interface: AlbumObject
      Call if underlying (file) structure has changed Will force synchronization with underlying structure when getChildren is called
      Specified by:
      invalidate in interface AlbumObject
      Overrides:
      invalidate in class AlbumObjectImpl