Class DeleteArg


  • public class DeleteArg
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String parentRev  
      protected java.lang.String path  
    • Constructor Summary

      Constructors 
      Constructor Description
      DeleteArg​(java.lang.String path)
      None
      DeleteArg​(java.lang.String path, java.lang.String parentRev)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getParentRev()
      Perform delete if given "rev" matches the existing file's latest "rev".
      java.lang.String getPath()
      Path in the user's Dropbox to delete.
      int hashCode()  
      java.lang.String toString()  
      java.lang.String toStringMultiline()
      Returns a String representation of this object formatted for easier readability.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • path

        protected final java.lang.String path
      • parentRev

        protected final java.lang.String parentRev
    • Constructor Detail

      • DeleteArg

        public DeleteArg​(java.lang.String path,
                         java.lang.String parentRev)
        Parameters:
        path - Path in the user's Dropbox to delete. Must match pattern "(/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)" and not be null.
        parentRev - Perform delete if given "rev" matches the existing file's latest "rev". This field does not support deleting a folder. Must have length of at least 9 and match pattern "[0-9a-f]+".
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • DeleteArg

        public DeleteArg​(java.lang.String path)
        None

        The default values for unset fields will be used.

        Parameters:
        path - Path in the user's Dropbox to delete. Must match pattern "(/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)" and not be null.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
    • Method Detail

      • getPath

        public java.lang.String getPath()
        Path in the user's Dropbox to delete.
        Returns:
        value for this field, never null.
      • getParentRev

        public java.lang.String getParentRev()
        Perform delete if given "rev" matches the existing file's latest "rev". This field does not support deleting a folder.
        Returns:
        value for this field, or null if not present.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toStringMultiline

        public java.lang.String toStringMultiline()
        Returns a String representation of this object formatted for easier readability.

        The returned String may contain newlines.

        Returns:
        Formatted, multiline String representation of this object