Class StrongInternPool.Index

java.lang.Object
org.jboss.jandex.StrongInternPool.Index
Enclosing class:
StrongInternPool<E>

public class StrongInternPool.Index extends Object
  • Field Details

    • offsets

      private int[] offsets
    • modCount

      private int modCount
  • Constructor Details

    • Index

      Index()
  • Method Details

    • positionOf

      public int positionOf(E e)
      Returns a 1-based position of given entry in the table. Returns -1 if the entry is not present in the table. This indeed means that this method never returns 0.
      Parameters:
      e - the entry to find in the table
      Returns:
      1-based position of e in the table, or -1 if it is not present