public class ChangeHistorySet extends Object
ChangeHistoryField
objects by a specified user.Constructor and Description |
---|
ChangeHistorySet(ChangeHistoryList changeHistoryList,
String changedBy) |
ChangeHistorySet(ChangeHistorySet changeHistorySet)
Constructs a new ChangeHistorySet based on an existing one.
|
Modifier and Type | Method and Description |
---|---|
ChangeHistorySet |
add(String fieldName,
String newValue)
A shortcut method to add change history field entries.
|
ChangeHistorySet |
add(String fieldName,
String oldValue,
String newValue)
Adds a new
ChangeHistoryField to the change history entry. |
boolean |
equals(Object o) |
String |
getChangedBy() |
ChangeHistoryList |
getContainingChangeHistoryList() |
Set |
getFieldChanges() |
int |
hashCode() |
boolean |
isSuperSetOf(ChangeHistorySet that)
Returns true if that ChangeHistorySet has the same name and has zero of more fields
that occur in this ChangeHistorySet
|
Iterator |
iterator() |
ChangeHistoryField |
lastOf(String fieldName)
Returns the last
ChangeHistoryField with the specified field name. |
String |
toString() |
public ChangeHistorySet(ChangeHistoryList changeHistoryList, String changedBy)
public ChangeHistorySet(ChangeHistorySet changeHistorySet)
changeHistorySet
- The existing ChangeHistorySet.public ChangeHistoryList getContainingChangeHistoryList()
public String getChangedBy()
public Set getFieldChanges()
public ChangeHistorySet add(String fieldName, String oldValue, String newValue)
ChangeHistoryField
to the change history entry. It is a complete field entry with old and new valuefieldName
- the name of the fieldoldValue
- the old valuenewValue
- the new valuepublic ChangeHistorySet add(String fieldName, String newValue)
ChangeHistoryList
and get the previous field values for the named field. It will then use the previous
"new value" as the "old value" in this new ChangeHistoryField
.fieldName
- the name of the fieldnewValue
- the new valuepublic ChangeHistoryField lastOf(String fieldName)
ChangeHistoryField
with the specified field name. Does this by navigating back up
the enclosing ChangeHistoryList
fieldName
- the name of the fieldpublic Iterator iterator()
public boolean isSuperSetOf(ChangeHistorySet that)
that
- the other ChangeHistorySetCopyright © 2002-2015 Atlassian. All Rights Reserved.