Interface KeysetHandleInterface

  • All Known Implementing Classes:
    KeysetHandle

    public interface KeysetHandleInterface
    Provides the basic interface for KeysetHandle.

    This is useful in contexts where we want to have the API of KeysetHandle, but not the dependencies.

    • Method Detail

      • size

        int size()
        Returns the number of entries in this keyset.
      • getAt

        KeysetHandleInterface.Entry getAt​(int i)
        Returns the entry at position i.
        Throws:
        java.lang.IndexOutOfBoundsException - if i < 0 or i >= size();
      • getAnnotationsOrNull

        <T extends Annotations> T getAnnotationsOrNull​(java.lang.Class<T> t)
        Returns annotations which could previously be added with KeysetHandleBuilder.addAnnotations();