Class Index

java.lang.Object
org.assertj.core.data.Index

public final class Index extends Object
A positive index.
Author:
Alex Ruiz
  • Field Details

    • value

      public final int value
  • Method Details

    • atIndex

      public static Index atIndex(int value)
      Creates a new Index.
      Parameters:
      value - the value of the index.
      Returns:
      the created Index.
      Throws:
      IllegalArgumentException - if the given value is negative.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object