T
- the generic element typepublic class Update<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.Integer |
amount
The third element
|
(package private) T |
element
The fourth element
|
(package private) int |
index
The first element
|
(package private) Operation |
op
The second element
|
Constructor and Description |
---|
Update(int index,
Operation op,
java.lang.Integer amount,
T element)
The constructor for update-elements
|
Modifier and Type | Method and Description |
---|---|
java.lang.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(java.lang.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
|
int index
Operation op
java.lang.Integer amount
T element
public Update(int index, Operation op, java.lang.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 java.lang.Integer getAmount()
public void setAmount(java.lang.Integer amount)
amount
- an object of type Fpublic T getElement()
public void setElement(T element)
element
- an object of type Hpublic int hashCode()
hashCode
in class java.lang.Object