public class PositionalMap<X> extends Object
Constructor and Description |
---|
PositionalMap()
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
|
boolean |
containsEntry(int x,
int y)
|
boolean |
containsValue(X obj)
|
X |
get(int x,
int y)
|
X |
getOrDefault(int x,
int y,
X def)
|
int |
getX(X x)
|
int |
getY(X x)
|
X |
put(int x,
int y,
X obj)
|
boolean |
putIfAbsent(int x,
int y,
X obj)
|
@NotNull Collection<X> |
values()
|
@NotNull Collection<X> |
valuesByColumn(int x)
|
@NotNull Collection<X> |
valuesByRow(int y)
|
@Nullable public X get(int x, int y)
public boolean containsEntry(int x, int y)
public boolean containsValue(X obj)
public boolean putIfAbsent(int x, int y, X obj)
@NotNull public @NotNull Collection<X> values()
@NotNull public @NotNull Collection<X> valuesByColumn(int x)
@NotNull public @NotNull Collection<X> valuesByRow(int y)
public int getX(X x)
public int getY(X x)
public void clear()
Copyright © 2020. All rights reserved.