public class Grid<T> extends Object
Constructor and Description |
---|
Grid(int width,
int height) |
Grid(int width,
int height,
BiFunction<Integer,Integer,T> initFunction) |
Modifier and Type | Method and Description |
---|---|
void |
forEach(Consumer<T> function) |
void |
forEach(TriConsumer<T,Integer,Integer> function) |
T |
get(int x,
int y) |
void |
populate(BiFunction<Integer,Integer,T> populateFunction) |
void |
set(int x,
int y,
T node) |
public Grid(int width, int height)
public Grid(int width, int height, BiFunction<Integer,Integer,T> initFunction)
Copyright © 2018. All rights reserved.