Class SingleUserLock

java.lang.Object
com.dropbox.core.v2.files.SingleUserLock

public class SingleUserLock extends Object
  • Field Details

    • created

      @Nonnull protected final Date created
    • lockHolderAccountId

      @Nonnull protected final String lockHolderAccountId
    • lockHolderTeamId

      @Nullable protected final String lockHolderTeamId
  • Constructor Details

    • SingleUserLock

      public SingleUserLock(@Nonnull Date created, @Nonnull String lockHolderAccountId, @Nullable String lockHolderTeamId)
      Parameters:
      created - The time the lock was created. Must not be null.
      lockHolderAccountId - The account ID of the lock holder if known. Must have length of at least 40, have length of at most 40, and not be null.
      lockHolderTeamId - The id of the team of the account holder if it exists.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • SingleUserLock

      public SingleUserLock(@Nonnull Date created, @Nonnull String lockHolderAccountId)
      None

      The default values for unset fields will be used.

      Parameters:
      created - The time the lock was created. Must not be null.
      lockHolderAccountId - The account ID of the lock holder if known. Must have length of at least 40, have length of at most 40, and not be null.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getCreated

      @Nonnull public Date getCreated()
      The time the lock was created.
      Returns:
      value for this field, never null.
    • getLockHolderAccountId

      @Nonnull public String getLockHolderAccountId()
      The account ID of the lock holder if known.
      Returns:
      value for this field, never null.
    • getLockHolderTeamId

      @Nullable public String getLockHolderTeamId()
      The id of the team of the account holder if it exists.
      Returns:
      value for this field, or null if not present.
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

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

      public 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