X
- The value class.public class SparseMatrix<X> extends Object
Constructor and Description |
---|
SparseMatrix() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
X |
get(int i,
int j)
Returns the value stored at the given position or null if no value was
stored there until now.
|
int |
hashCode() |
void |
set(int i,
int j,
X value)
Sets the value at the given position in the matrix.
|
String |
toString() |
public X get(int i, int j)
i
- the row index.j
- the column index.public void set(int i, int j, X value)
i
- the row index.j
- the column index.value
- a value.Copyright © 2014. All rights reserved.