Class DigestTree


  • public class DigestTree
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      DigestTree()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      boolean contains​(StrStr entry)  
      StrStr get​(java.lang.String fileName)  
      boolean putIfAbsent​(StrStr entry)
      Custom putIfAbsent implementation.
      void remove​(java.lang.String fileName)  
      • Methods inherited from class java.lang.Object

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

      • DigestTree

        public DigestTree()
    • Method Detail

      • putIfAbsent

        public boolean putIfAbsent​(StrStr entry)
        Custom putIfAbsent implementation. Adds the entry only if no mapping for the fileName already exists.
        Parameters:
        entry - the StrStr object to insert
        Returns:
        true if the entry was added, false if it already existed
      • contains

        public boolean contains​(StrStr entry)
      • get

        public StrStr get​(java.lang.String fileName)
      • remove

        public void remove​(java.lang.String fileName)
      • clear

        public void clear()