|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.multicorebsp.util.MatrixData<NoData> com.multicorebsp.util.NoData
public class NoData
``Fake" data class, for example to be used for matrices storing pattern data.
Constructor Summary | |
---|---|
NoData()
|
Method Summary | |
---|---|
void |
add(int i,
int j)
Adds the values of two nonzeroes and saves it at the last index available. |
void |
parseAndWrite(int i,
java.util.Scanner s)
Parses an input stream and writes the contect to the i'th index. |
void |
removeDuplicates(int nr)
Removes duplicates from the data structure. |
NoData |
safeClone()
|
NoData |
safeClone(int i,
int j)
Clones only a subset of the data. |
void |
swap(int i,
int j)
Swaps data elements. |
Methods inherited from class com.multicorebsp.util.MatrixData |
---|
clone |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NoData()
Method Detail |
---|
public NoData safeClone()
public void add(int i, int j)
MatrixData
add
in class MatrixData<NoData>
i
- First nonzero index (will remain unchanged).j
- Second nonzero index (will be replaced by sum).public void removeDuplicates(int nr)
MatrixData
removeDuplicates
in class MatrixData<NoData>
nr
- Number of elements to remove.public void swap(int i, int j)
MatrixData
swap
in class MatrixData<NoData>
i
- First indexj
- Second indexpublic NoData safeClone(int i, int j)
MatrixData
safeClone
in class MatrixData<NoData>
i
- Lower bound of the index to copy.j
- Upper bound on the index to copy.
public void parseAndWrite(int i, java.util.Scanner s)
MatrixData
parseAndWrite
in class MatrixData<NoData>
i
- At what index to save input.s
- Where to get the input from.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |