Interface LazySegment<E>

All Known Implementing Classes:
LazyArrayList.Segment, LazyHashMap.Segment

public interface LazySegment<E>
  • Method Summary

    Modifier and Type Method Description
    void allowUnload​(boolean allow)  
    E getData()  
    boolean isLoaded()
    Check if the lazy loaded data of this segment has been loaded.
    boolean isModified()
    Check if this segment has modifications that are not yet persisted.
    int size()
    get the number of contained element in this segment.
    boolean unloadAllowed()  
    void unloadSegment()
    Unload the lazy data of this segment
  • Method Details

    • size

      int size()
      get the number of contained element in this segment.
      Returns:
      number of contained elements;
    • isLoaded

      boolean isLoaded()
      Check if the lazy loaded data of this segment has been loaded.
      Returns:
      true if loaded, otherwise false.
    • isModified

      boolean isModified()
      Check if this segment has modifications that are not yet persisted.
      Returns:
      true if there are modifications not yet persisted, otherwise false.
    • unloadSegment

      void unloadSegment()
      Unload the lazy data of this segment
    • unloadAllowed

      boolean unloadAllowed()
    • allowUnload

      void allowUnload​(boolean allow)
    • getData

      E getData()