public class NonNullMatrix<T>
extends java.util.AbstractList<T>
| Modifier and Type | Class and Description |
|---|---|
static interface |
NonNullMatrix.IEntryFiller<T> |
| Constructor and Description |
|---|
NonNullMatrix(int width,
int height,
NonNullMatrix.IEntryFiller<T> filler) |
NonNullMatrix(int width,
int height,
T fill) |
NonNullMatrix(T[][] from,
T nullReplacer)
Creates a
NonNullMatrix from the given 2-dim array, replacing all null values with the given nonnull
replacement. |
| Modifier and Type | Method and Description |
|---|---|
T |
get(int index) |
T |
get(int x,
int y) |
int |
getHeight() |
int |
getWidth() |
T |
set(int x,
int y,
T element) |
T |
set(int index,
T element) |
int |
size() |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic NonNullMatrix(int width,
int height,
@Nonnull
T fill)
public NonNullMatrix(int width,
int height,
NonNullMatrix.IEntryFiller<T> filler)
public NonNullMatrix(T[][] from, @Nonnull T nullReplacer)
NonNullMatrix from the given 2-dim array, replacing all null values with the given nonnull
replacement.