Class SequencesComparator.Snake

java.lang.Object
org.apache.commons.collections4.sequence.SequencesComparator.Snake
Enclosing class:
SequencesComparator<T>

private static class SequencesComparator.Snake extends Object
This class is a simple placeholder to hold the end part of a path under construction in a SequencesComparator.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
    Diagonal number.
    private final int
    End index.
    private final int
    Start index.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Snake(int start, int end, int diag)
    Simple constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the diagonal number of the snake.
    int
    Get the end index of the snake.
    int
    Get the start index of the snake.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • start

      private final int start
      Start index.
    • end

      private final int end
      End index.
    • diag

      private final int diag
      Diagonal number.
  • Constructor Details

    • Snake

      public Snake(int start, int end, int diag)
      Simple constructor. Creates a new instance of Snake with specified indices.
      Parameters:
      start - start index of the snake
      end - end index of the snake
      diag - diagonal number
  • Method Details

    • getStart

      public int getStart()
      Get the start index of the snake.
      Returns:
      start index of the snake
    • getEnd

      public int getEnd()
      Get the end index of the snake.
      Returns:
      end index of the snake
    • getDiag

      public int getDiag()
      Get the diagonal number of the snake.
      Returns:
      diagonal number of the snake