public abstract class AbstractMatrix extends PersistentObject
int
, float
, etc.
First see the package summary and javadoc tree view to get the broad picture.
Note that this implementation is not synchronized.
Modifier and Type | Field and Description |
---|---|
protected boolean |
isNoView |
serialVersionUID
Modifier | Constructor and Description |
---|---|
protected |
AbstractMatrix()
Makes this class non instantiable, but still let's others inherit from it.
|
Modifier and Type | Method and Description |
---|---|
void |
ensureCapacity(int minNonZeros)
Ensures that the receiver can hold at least the specified number of non-zero (non-null) cells without needing to allocate new internal memory.
|
protected boolean |
isView()
Returns whether the receiver is a view or not.
|
abstract int |
size()
Returns the number of cells.
|
void |
trimToSize()
Releases any superfluous internal memory.
|
clone
protected AbstractMatrix()
public void ensureCapacity(int minNonZeros)
This default implementation does nothing. Override this method if necessary.
minNonZeros
- the desired minimum number of non-zero (non-null) cells.protected boolean isView()
public abstract int size()
public void trimToSize()
This default implementation does nothing. Override this method if necessary.
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.