Class Grids

java.lang.Object
civitas.celestis.util.grid.Grids

public final class Grids extends Object
A utility class related to Grids.
See Also:
  • Method Details

    • hash

      public static int hash(@Nonnull Grid<?> g)
      Hashes a grid.
      Parameters:
      g - The grid of which to hash
      Returns:
      The hash code of the grid
    • hash

      public static int hash(@Nonnull DoubleGrid g)
      Hashes a grid.
      Parameters:
      g - The grid of which to hash
      Returns:
      The hash code of the grid
    • hash

      public static int hash(@Nonnull FloatGrid g)
      Hashes a grid.
      Parameters:
      g - The grid of which to hash
      Returns:
      The hash code of the grid
    • hash

      public static int hash(@Nonnull LongGrid g)
      Hashes a grid.
      Parameters:
      g - The grid of which to hash
      Returns:
      The hash code of the grid
    • hash

      public static int hash(@Nonnull IntGrid g)
      Hashes a grid.
      Parameters:
      g - The grid of which to hash
      Returns:
      The hash code of the grid