@CodeReview(reviewer="Justin Basilico", date="2006-07-26", changesNeeded=false, comments="Looks good.") public class DefaultTwoVectorEntry extends java.lang.Object implements TwoVectorEntry
Constructor and Description |
---|
DefaultTwoVectorEntry(Vector firstVector,
Vector secondVector)
Creates a new instance of DefaultTwoVectorEntry.
|
DefaultTwoVectorEntry(Vector firstVector,
Vector secondVector,
int index)
Creates a new instance of DefaultTwoVectorEntry.
|
Modifier and Type | Method and Description |
---|---|
double |
getFirstValue()
Gets the entry value from the first underlying vector.
|
Vector |
getFirstVector()
Getter for firstVector.
|
int |
getIndex()
Gets the current index into the underlying vectors.
|
double |
getSecondValue()
Gets the entry value for the second underlying vector
|
Vector |
getSecondVector()
Getter for secondVector.
|
void |
setFirstValue(double value)
Sets the entry value to the first underlying vector.
|
void |
setFirstVector(Vector firstVector)
Setter for firstVector.
|
void |
setIndex(int index)
Sets the current index into the underlying vectors.
|
void |
setSecondValue(double value)
Sets the entry value for the second underlying vector.
|
void |
setSecondVector(Vector secondVector)
Setter for secondVector.
|
public DefaultTwoVectorEntry(Vector firstVector, Vector secondVector)
firstVector
- First underlying vectorsecondVector
- Second underlying vectorpublic Vector getFirstVector()
public void setFirstVector(Vector firstVector)
firstVector
- First underlying vector.public Vector getSecondVector()
public void setSecondVector(Vector secondVector)
secondVector
- Second underlying vector.public double getFirstValue()
getFirstValue
in interface TwoVectorEntry
public void setFirstValue(double value)
setFirstValue
in interface TwoVectorEntry
value
- Entry value to the first underlying vector.public int getIndex()
getIndex
in interface TwoVectorEntry
public void setIndex(int index)
setIndex
in interface TwoVectorEntry
index
- Current index into the underlying vectors.public double getSecondValue()
getSecondValue
in interface TwoVectorEntry
public void setSecondValue(double value)
setSecondValue
in interface TwoVectorEntry
value
- Entry value for the second underlying vector.