Uses of Interface
civitas.celestis.util.grid.Grid

Packages that use Grid
Package
Description
 
  • Uses of Grid in civitas.celestis.util.grid

    Subinterfaces of Grid in civitas.celestis.util.grid
    Modifier and Type
    Interface
    Description
    interface 
    A grid whose size can be changed without requiring re-instantiation.
    Classes in civitas.celestis.util.grid that implement Grid
    Modifier and Type
    Class
    Description
    class 
    A static grid implemented using primitive arrays.
    class 
    A grid which stores atomic references to objects instead of the objects themselves.
    class 
    A grid whose data is stored as a HashMap.
    class 
    A variant of the array grid which features synchronization.
    Methods in civitas.celestis.util.grid that return Grid
    Modifier and Type
    Method
    Description
    static <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 a Double object.
    DoubleGrid.boxed()
    Returns a new grid whose values are populated from that of this grid's values, encapsulated inside a Double object.
    FloatArrayGrid.boxed()
    Returns a new grid whose values are populated from that of this grid's values, encapsulated inside a Float object.
    FloatGrid.boxed()
    Returns a new grid whose values are populated from that of this grid's values, encapsulated inside a Float object.
    IntArrayGrid.boxed()
    Returns a new grid whose values are populated from that of this grid's values, encapsulated inside a Integer object.
    IntGrid.boxed()
    Returns a new grid whose values are populated from that of this grid's values, encapsulated inside a Integer object.
    LongArrayGrid.boxed()
    Returns a new grid whose values are populated from that of this grid's values, encapsulated inside a Long object.
    LongGrid.boxed()
    Returns a new grid whose values are populated from that of this grid's values, encapsulated inside a Long object.
    static <E> Grid<E>
    Grid.copyOf(Grid<? extends E> g)
    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>
    ArrayGrid.map(Function<? super E,? extends F> f)
    Applies the provided mapper function f to 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>
    AtomicGrid.map(Function<? super E,? extends F> f)
    Applies the provided mapper function f to 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>
    Grid.map(Function<? super E,? extends F> f)
    Applies the provided mapper function f to 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>
    HashGrid.map(Function<? super E,? extends F> f)
    Applies the provided mapper function f to 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>
    SyncGrid.map(Function<? super E,? extends F> f)
    Applies the provided mapper function f to 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 function f to 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 function f to 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 function f to 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 function f to 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 function f to 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 function f to 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 function f to 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 function f to 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 grid g, this applies the merger function f for each corresponding pair of elements, then returns a new grid whose elements are populated from that of the return values of the merger function f.
    <F, G> Grid<G>
    AtomicGrid.merge(Grid<F> g, BiFunction<? super E,? super F,G> f)
    Between this grid and the provided grid g, this applies the merger function f for each corresponding pair of elements, then returns a new grid whose elements are populated from that of the return values of the merger function f.
    <F, G> Grid<G>
    Grid.merge(Grid<F> g, BiFunction<? super E,? super F,G> f)
    Between this grid and the provided grid g, this applies the merger function f for each corresponding pair of elements, then returns a new grid whose elements are populated from that of the return values of the merger function f.
    <F, G> Grid<G>
    HashGrid.merge(Grid<F> g, BiFunction<? super E,? super F,G> f)
    Between this grid and the provided grid g, this applies the merger function f for each corresponding pair of elements, then returns a new grid whose elements are populated from that of the return values of the merger function f.
    <F, G> Grid<G>
    SyncGrid.merge(Grid<F> g, BiFunction<? super E,? super F,G> f)
    Between this grid and the provided grid g, this applies the merger function f for each corresponding pair of elements, then returns a new grid whose elements are populated from that of the return values of the merger function f.
    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 Grid
    Modifier and Type
    Method
    Description
    static <E> Grid<E>
    Grid.atomicCopyOf(Grid<? extends E> g)
    Creates an atomic copy of an existing grid.
    static <E> Grid<E>
    Grid.copyOf(Grid<? extends E> g)
    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 int
    Grids.hash(Grid<?> g)
    Hashes a grid.
    <F, G> Grid<G>
    ArrayGrid.merge(Grid<F> g, BiFunction<? super E,? super F,G> f)
    Between this grid and the provided grid g, this applies the merger function f for each corresponding pair of elements, then returns a new grid whose elements are populated from that of the return values of the merger function f.
    <F, G> Grid<G>
    AtomicGrid.merge(Grid<F> g, BiFunction<? super E,? super F,G> f)
    Between this grid and the provided grid g, this applies the merger function f for each corresponding pair of elements, then returns a new grid whose elements are populated from that of the return values of the merger function f.
    <F, G> Grid<G>
    Grid.merge(Grid<F> g, BiFunction<? super E,? super F,G> f)
    Between this grid and the provided grid g, this applies the merger function f for each corresponding pair of elements, then returns a new grid whose elements are populated from that of the return values of the merger function f.
    <F, G> Grid<G>
    HashGrid.merge(Grid<F> g, BiFunction<? super E,? super F,G> f)
    Between this grid and the provided grid g, this applies the merger function f for each corresponding pair of elements, then returns a new grid whose elements are populated from that of the return values of the merger function f.
    <F, G> Grid<G>
    SyncGrid.merge(Grid<F> g, BiFunction<? super E,? super F,G> f)
    Between this grid and the provided grid g, this applies the merger function f for each corresponding pair of elements, then returns a new grid whose elements are populated from that of the return values of the merger function f.
    void
    ArrayGrid.setRange(int r1, int c1, int r2, int c2, Grid<? extends E> g)
    Sets a sub-grid of this grid, copying values from the provided sub-grid g.
    void
    AtomicGrid.setRange(int r1, int c1, int r2, int c2, Grid<? extends E> g)
    Sets a sub-grid of this grid, copying values from the provided sub-grid g.
    void
    Grid.setRange(int r1, int c1, int r2, int c2, Grid<? extends E> g)
    Sets a sub-grid of this grid, copying values from the provided sub-grid g.
    void
    HashGrid.setRange(int r1, int c1, int r2, int c2, Grid<? extends E> g)
    Sets a sub-grid of this grid, copying values from the provided sub-grid g.
    void
    SyncGrid.setRange(int r1, int c1, int r2, int c2, Grid<? extends E> g)
    Sets a sub-grid of this grid, copying values from the provided sub-grid g.
    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
    Modifier
    Constructor
    Description
     
    ArrayGrid(Grid<? extends E> g)
    Creates a new array grid.
     
    AtomicGrid(Grid<? extends E> g)
    Creates a new atomic grid.
     
    HashGrid(Grid<? extends E> g)
    Creates a new hash grid.
     
    SyncGrid(Grid<? extends E> g)
    Creates a new synchronized grid.