Uses of Interface
civitas.celestis.util.grid.Grid
Packages that use Grid
-
Uses of Grid in civitas.celestis.util.grid
Subinterfaces of Grid in civitas.celestis.util.gridModifier and TypeInterfaceDescriptioninterfaceDynamicGrid<E>A grid whose size can be changed without requiring re-instantiation.Classes in civitas.celestis.util.grid that implement GridModifier and TypeClassDescriptionclassArrayGrid<E>A static grid implemented using primitive arrays.classAtomicGrid<E>A grid which stores atomic references to objects instead of the objects themselves.classHashGrid<E>A grid whose data is stored as aHashMap.classSyncGrid<E>A variant of the array grid which features synchronization.Methods in civitas.celestis.util.grid that return GridModifier and TypeMethodDescriptionstatic <E> Grid<E>Grid.atomicCopyOf(Grid<? extends E> g) Creates an atomic copy of an existing grid.static <E> Grid<E>Grid.atomicOf(E[][] values) Creates a new atomic grid form a two-dimensional array of values.DoubleArrayGrid.boxed()Returns a new grid whose values are populated from that of this grid's values, encapsulated inside aDoubleobject.DoubleGrid.boxed()Returns a new grid whose values are populated from that of this grid's values, encapsulated inside aDoubleobject.FloatArrayGrid.boxed()Returns a new grid whose values are populated from that of this grid's values, encapsulated inside aFloatobject.FloatGrid.boxed()Returns a new grid whose values are populated from that of this grid's values, encapsulated inside aFloatobject.IntArrayGrid.boxed()Returns a new grid whose values are populated from that of this grid's values, encapsulated inside aIntegerobject.IntGrid.boxed()Returns a new grid whose values are populated from that of this grid's values, encapsulated inside aIntegerobject.LongArrayGrid.boxed()Returns a new grid whose values are populated from that of this grid's values, encapsulated inside aLongobject.LongGrid.boxed()Returns a new grid whose values are populated from that of this grid's values, encapsulated inside aLongobject.static <E> Grid<E>Creates a copy of an existing grid.static <E> Grid<E>Grid.dynamicCopyOf(Grid<? extends E> g) Creates a dynamic copy of an existing grid.static <E> Grid<E>Grid.dynamicOf(E[][] values) Creates a new dynamic grid from a two-dimensional array of values.<F> Grid<F>Applies the provided mapper functionfto every element of this grid, then returns a new grid whose values are populated from that of the provided function's return values.<F> Grid<F>Applies the provided mapper functionfto every element of this grid, then returns a new grid whose values are populated from that of the provided function's return values.<F> Grid<F>Applies the provided mapper functionfto every element of this grid, then returns a new grid whose values are populated from that of the provided function's return values.<F> Grid<F>Applies the provided mapper functionfto every element of this grid, then returns a new grid whose values are populated from that of the provided function's return values.<F> Grid<F>Applies the provided mapper functionfto every element of this grid, then returns a new grid whose values are populated from that of the provided function's return values.<F> Grid<F>DoubleArrayGrid.mapToObj(DoubleFunction<? extends F> f) Applies the provided mapper functionfto every element of this grid, then returns a new grid whose values are populated from that of the provided function's return values.<F> Grid<F>DoubleGrid.mapToObj(DoubleFunction<? extends F> f) Applies the provided mapper functionfto every element of this grid, then returns a new grid whose values are populated from that of the provided function's return values.<F> Grid<F>FloatArrayGrid.mapToObj(FloatFunction<? extends F> f) Applies the provided mapper functionfto every element of this grid, then returns a new grid whose values are populated from that of the provided function's return values.<F> Grid<F>FloatGrid.mapToObj(FloatFunction<? extends F> f) Applies the provided mapper functionfto every element of this grid, then returns a new grid whose values are populated from that of the provided function's return values.<F> Grid<F>IntArrayGrid.mapToObj(IntFunction<? extends F> f) Applies the provided mapper functionfto every element of this grid, then returns a new grid whose values are populated from that of the provided function's return values.<F> Grid<F>IntGrid.mapToObj(IntFunction<? extends F> f) Applies the provided mapper functionfto every element of this grid, then returns a new grid whose values are populated from that of the provided function's return values.<F> Grid<F>LongArrayGrid.mapToObj(LongFunction<? extends F> f) Applies the provided mapper functionfto every element of this grid, then returns a new grid whose values are populated from that of the provided function's return values.<F> Grid<F>LongGrid.mapToObj(LongFunction<? extends F> f) Applies the provided mapper functionfto every element of this grid, then returns a new grid whose values are populated from that of the provided function's return values.<F,G> Grid<G> ArrayGrid.merge(Grid<F> g, BiFunction<? super E, ? super F, G> f) Between this grid and the provided gridg, this applies the merger functionffor each corresponding pair of elements, then returns a new grid whose elements are populated from that of the return values of the merger functionf.<F,G> Grid<G> AtomicGrid.merge(Grid<F> g, BiFunction<? super E, ? super F, G> f) Between this grid and the provided gridg, this applies the merger functionffor each corresponding pair of elements, then returns a new grid whose elements are populated from that of the return values of the merger functionf.<F,G> Grid<G> Grid.merge(Grid<F> g, BiFunction<? super E, ? super F, G> f) Between this grid and the provided gridg, this applies the merger functionffor each corresponding pair of elements, then returns a new grid whose elements are populated from that of the return values of the merger functionf.<F,G> Grid<G> HashGrid.merge(Grid<F> g, BiFunction<? super E, ? super F, G> f) Between this grid and the provided gridg, this applies the merger functionffor each corresponding pair of elements, then returns a new grid whose elements are populated from that of the return values of the merger functionf.<F,G> Grid<G> SyncGrid.merge(Grid<F> g, BiFunction<? super E, ? super F, G> f) Between this grid and the provided gridg, this applies the merger functionffor each corresponding pair of elements, then returns a new grid whose elements are populated from that of the return values of the merger functionf.static <E> Grid<E>Grid.of(E[][] values) Creates a new grid from a two-dimensional array of values.ArrayGrid.resize(int rows, int columns) Returns a resized grid, whose elements are populated from that of this grid's elements.AtomicGrid.resize(int rows, int columns) Returns a resized grid, whose elements are populated from that of this grid's elements.Grid.resize(int rows, int columns) Returns a resized grid, whose elements are populated from that of this grid's elements.HashGrid.resize(int rows, int columns) Returns a resized grid, whose elements are populated from that of this grid's elements.SyncGrid.resize(int rows, int columns) Returns a resized grid, whose elements are populated from that of this grid's elements.ArrayGrid.subGrid(int r1, int c1, int r2, int c2) Returns a sub-grid of this grid, whose values are populated from that of this grid's elements within the specified range.AtomicGrid.subGrid(int r1, int c1, int r2, int c2) Returns a sub-grid of this grid, whose values are populated from that of this grid's elements within the specified range.Grid.subGrid(int r1, int c1, int r2, int c2) Returns a sub-grid of this grid, whose values are populated from that of this grid's elements within the specified range.HashGrid.subGrid(int r1, int c1, int r2, int c2) Returns a sub-grid of this grid, whose values are populated from that of this grid's elements within the specified range.SyncGrid.subGrid(int r1, int c1, int r2, int c2) Returns a sub-grid of this grid, whose values are populated from that of this grid's elements within the specified range.static <E> Grid<E>Grid.syncCopyOf(Grid<? extends E> g) Creates a thread-safe copy of an existing grid.static <E> Grid<E>Grid.syncOf(E[][] values) Creates a new thread-safe grid from a two-dimensional array of values.ArrayGrid.transpose()Returns the transpose of this grid.AtomicGrid.transpose()Returns the transpose of this grid.Grid.transpose()Returns the transpose of this grid.HashGrid.transpose()Returns the transpose of this grid.SyncGrid.transpose()Returns the transpose of this grid.Methods in civitas.celestis.util.grid with parameters of type GridModifier and TypeMethodDescriptionstatic <E> Grid<E>Grid.atomicCopyOf(Grid<? extends E> g) Creates an atomic copy of an existing grid.static <E> Grid<E>Creates a copy of an existing grid.static <E> Grid<E>Grid.dynamicCopyOf(Grid<? extends E> g) Creates a dynamic copy of an existing grid.static intHashes a grid.<F,G> Grid<G> ArrayGrid.merge(Grid<F> g, BiFunction<? super E, ? super F, G> f) Between this grid and the provided gridg, this applies the merger functionffor each corresponding pair of elements, then returns a new grid whose elements are populated from that of the return values of the merger functionf.<F,G> Grid<G> AtomicGrid.merge(Grid<F> g, BiFunction<? super E, ? super F, G> f) Between this grid and the provided gridg, this applies the merger functionffor each corresponding pair of elements, then returns a new grid whose elements are populated from that of the return values of the merger functionf.<F,G> Grid<G> Grid.merge(Grid<F> g, BiFunction<? super E, ? super F, G> f) Between this grid and the provided gridg, this applies the merger functionffor each corresponding pair of elements, then returns a new grid whose elements are populated from that of the return values of the merger functionf.<F,G> Grid<G> HashGrid.merge(Grid<F> g, BiFunction<? super E, ? super F, G> f) Between this grid and the provided gridg, this applies the merger functionffor each corresponding pair of elements, then returns a new grid whose elements are populated from that of the return values of the merger functionf.<F,G> Grid<G> SyncGrid.merge(Grid<F> g, BiFunction<? super E, ? super F, G> f) Between this grid and the provided gridg, this applies the merger functionffor each corresponding pair of elements, then returns a new grid whose elements are populated from that of the return values of the merger functionf.voidSets a sub-grid of this grid, copying values from the provided sub-gridg.voidSets a sub-grid of this grid, copying values from the provided sub-gridg.voidSets a sub-grid of this grid, copying values from the provided sub-gridg.voidSets a sub-grid of this grid, copying values from the provided sub-gridg.voidSets a sub-grid of this grid, copying values from the provided sub-gridg.static <E> Grid<E>Grid.syncCopyOf(Grid<? extends E> g) Creates a thread-safe copy of an existing grid.Constructors in civitas.celestis.util.grid with parameters of type Grid