RGB-rogue-like-game
1.0
RGB-rogue-like-game
/
ru.hse.sd.rgb.utils.structures
/
Grid2D
Grid2D
public
final
class
Grid2D
<
T
extends
Object
>
extends
AbstractCollection
<
T
>
Content copied to clipboard
Types
Constructors
Functions
Properties
Constructors
Grid2D
Link copied to clipboard
Grid2D
<
T
>
Grid2D
<
T
extends
Any
>
(
List
<
List
<
T
>
>
data
)
Content copied to clipboard
Types
Coordinated
Value
Link copied to clipboard
public
final
class
CoordinatedValue
<
T
extends
Object
>
Content copied to clipboard
Functions
contains
Link copied to clipboard
Boolean
contains
(
T
element
)
Content copied to clipboard
contains
All
Link copied to clipboard
Boolean
containsAll
(
Collection
<
T
>
elements
)
Content copied to clipboard
for
Each
Link copied to clipboard
Unit
forEach
(
Consumer
<
? super
T
>
p0
)
Content copied to clipboard
get
Link copied to clipboard
final
T
get
(
Cell
cell
)
Content copied to clipboard
final
T
get
(
Integer
x
,
Integer
y
)
Content copied to clipboard
get
H
Link copied to clipboard
final
Integer
getH
(
)
Content copied to clipboard
get
Size
Link copied to clipboard
Integer
getSize
(
)
Content copied to clipboard
get
W
Link copied to clipboard
final
Integer
getW
(
)
Content copied to clipboard
is
Empty
Link copied to clipboard
Boolean
isEmpty
(
)
Content copied to clipboard
iterator
Link copied to clipboard
Iterator
<
T
>
iterator
(
)
Content copied to clipboard
map
Link copied to clipboard
final
Grid2D
<
R
>
map
<
R
extends
Any
>
(
Function1
<
T
,
R
>
transform
)
Content copied to clipboard
parallel
Stream
Link copied to clipboard
Stream
<
T
>
parallelStream
(
)
Content copied to clipboard
set
Link copied to clipboard
final
Unit
set
(
Cell
cell
,
T
value
)
Content copied to clipboard
final
Unit
set
(
Integer
x
,
Integer
y
,
T
value
)
Content copied to clipboard
spliterator
Link copied to clipboard
Spliterator
<
T
>
spliterator
(
)
Content copied to clipboard
stream
Link copied to clipboard
Stream
<
T
>
stream
(
)
Content copied to clipboard
to
Array
Link copied to clipboard
Array
<
T
>
toArray
<
T
extends
Any
>
(
IntFunction
<
Array
<
T
>
>
p0
)
Content copied to clipboard
to
String
Link copied to clipboard
String
toString
(
)
Content copied to clipboard
with
Coords
Link copied to clipboard
final
Iterable
<
Grid2D.CoordinatedValue
<
T
>
>
withCoords
(
)
Content copied to clipboard
with
Index
Link copied to clipboard
final
Void
withIndex
(
)
Content copied to clipboard
Properties
h
Link copied to clipboard
private
final
Integer
h
Content copied to clipboard
size
Link copied to clipboard
private
final
Integer
size
Content copied to clipboard
w
Link copied to clipboard
private
final
Integer
w
Content copied to clipboard