类 RunLength

    • 构造器详细资料

      • RunLength

        public RunLength​(int y,
                         int x,
                         int count)
        Construct a RunLength
        参数:
        y - the y coordinate
        x - the x coordinate
        count - the length of the RunLength - 1
    • 方法详细资料

      • getX

        public int getX()
        Get the x coordinate
        返回:
        the x coordinate
      • getY

        public int getY()
        Get the y coordinate
        返回:
        the y coordinate
      • getCount

        public int getCount()
        Get the length - 1
        返回:
        length - 1
      • reset

        public void reset​(int y,
                          int x,
                          int count)
        Reset a RunLength
        参数:
        y - the y coordinate
        x - the x coordinate
        count - the length of the RunLength - 1
      • compareTo

        public int compareTo​(RunLength opd)
        Compare RunLength by y and x coordinate
        指定者:
        compareTo 在接口中 Comparable<RunLength>
        参数:
        opd - the RunLength to compare
        返回:
        -1,0 or 1