Class Ranges.Range

  • Enclosing interface:
    Ranges

    public static class Ranges.Range
    extends java.lang.Object
    Instructions for copying along a particular dimension. (To copy an n-dimensional region, n Ranges are combined.)

    Copy w elements to coordinates x through x + w (exclusive) in destination, from source cell with gridx grid coordinate, starting at coordinate cellx within cell, and from there moving in dir for successive source elements.

    It is guaranteed that all w elements fall within the same cell (i.e., primitive array).

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int cellx  
      (package private) Ranges.Direction dir  
      (package private) int gridx  
      (package private) int w  
      (package private) int x  
    • Constructor Summary

      Constructors 
      Constructor Description
      Range​(int gridx, int cellx, int w, Ranges.Direction dir, int x)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • gridx

        final int gridx
      • cellx

        final int cellx
      • w

        final int w
      • x

        final int x
    • Constructor Detail

      • Range

        public Range​(int gridx,
                     int cellx,
                     int w,
                     Ranges.Direction dir,
                     int x)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object