Class RefCountedFile

    • Field Detail

      • closed

        protected boolean closed
    • Constructor Detail

      • RefCountedFile

        public RefCountedFile​(File file)
    • Method Detail

      • getFile

        public File getFile()
      • retain

        public void retain()
        Description copied from interface: RefCounted
        Increases the reference counter.
        Specified by:
        retain in interface RefCounted
      • release

        public boolean release()
        Description copied from interface: RefCounted
        Decreases the reference counter.
        Specified by:
        release in interface RefCounted
        Returns:
        true if the reference counter reached 0, false otherwise.
      • getReferenceCounter

        public int getReferenceCounter()