Representation of a 2-dimensional grid. This implementation is designed to be as memory-efficient as possible for storing many grids in memory. Most JVMs use 32bit ints to store byte, short, and boolean individual primitives, but will actually make efficient use of memory when these small primitives are stored in arrays. Therefore, we create a single sorted array of shorts, where both the X and Y coordinate for a given "true" point are the grid are encoded in one short.
@author Josh Schroeder
@since 09 Dec 2004
@author Lane Schwartz
@since 15 Dec 2008
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.