Package org.jboss.jandex
Class StrongInternPool.Index
java.lang.Object
org.jboss.jandex.StrongInternPool.Index
- Enclosing class:
StrongInternPool<E>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
positionOf
(E e) Returns a 1-based position of given entry in the table.
-
Field Details
-
offsets
private int[] offsets -
modCount
private int modCount
-
-
Constructor Details
-
Index
Index()
-
-
Method Details
-
positionOf
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
-