T - the generic element typepublic class Update<T> extends Object
| Constructor and Description |
|---|
Update(int index,
Operation op,
Integer amount,
T element)
The constructor for update-elements
|
| Modifier and Type | Method and Description |
|---|---|
Integer |
getAmount()
returns the third element of this quadruple
|
T |
getElement()
returns the fourth element of this quadruple
|
Operation |
getOperation()
returns the second element of this quadruple
|
int |
getPreferenceOrderIndex()
returns the first element of this quadruple
|
int |
hashCode() |
void |
setAmount(Integer amount)
sets the third element of this triple
|
void |
setElement(T element)
sets the fourth element of this triple
|
void |
setOperation(Operation op)
sets the second element of this triple
|
void |
setPreferenceOrderIndex(int index)
sets the first element of this triple
|
public Update(int index,
Operation op,
Integer amount,
T element)
index - the preference operation index in the input setop - the operation that is going to be used (WEAKEN or STRENGTHEN)amount - the amount of operations to be usedelement - the element within the preference order to be affectedpublic int getPreferenceOrderIndex()
public void setPreferenceOrderIndex(int index)
index - the index of the preference order in the input setpublic Operation getOperation()
public void setOperation(Operation op)
op - an object of type Epublic Integer getAmount()
public void setAmount(Integer amount)
amount - an object of type Fpublic T getElement()
public void setElement(T element)
element - an object of type HCopyright © 2018. All rights reserved.