public class SingleUserLock
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Date |
created |
protected java.lang.String |
lockHolderAccountId |
protected java.lang.String |
lockHolderTeamId |
Constructor and Description |
---|
SingleUserLock(java.util.Date created,
java.lang.String lockHolderAccountId)
None
|
SingleUserLock(java.util.Date created,
java.lang.String lockHolderAccountId,
java.lang.String lockHolderTeamId) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getCreated()
The time the lock was created.
|
java.lang.String |
getLockHolderAccountId()
The account ID of the lock holder if known.
|
java.lang.String |
getLockHolderTeamId()
The id of the team of the account holder if it exists.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final java.util.Date created
protected final java.lang.String lockHolderAccountId
protected final java.lang.String lockHolderTeamId
public SingleUserLock(java.util.Date created, java.lang.String lockHolderAccountId, java.lang.String lockHolderTeamId)
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.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public SingleUserLock(java.util.Date created, java.lang.String lockHolderAccountId)
The default values for unset fields will be used.
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
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.util.Date getCreated()
null
.public java.lang.String getLockHolderAccountId()
null
.public java.lang.String getLockHolderTeamId()
null
if not present.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.