Interface SparseAnnotations

  • All Superinterfaces:
    Annotations
    All Known Implementing Classes:
    DefaultAnnotations

    public interface SparseAnnotations
    extends Annotations
    Represents an set of sparse key/value string annotations capable of carrying annotation keys tagged for removal.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean isRemoved​(java.lang.String key)
      Indicates whether the specified key has been tagged as removed.
      java.util.Set<java.lang.String> keys()
      Returns the set of keys for available annotations.
    • Method Detail

      • keys

        java.util.Set<java.lang.String> keys()
        Returns the set of keys for available annotations.

        Note that this set includes keys for any attributes tagged for removal.

        Specified by:
        keys in interface Annotations
        Returns:
        annotation keys
      • isRemoved

        boolean isRemoved​(java.lang.String key)
        Indicates whether the specified key has been tagged as removed. This is used for merging sparse annotation sets.
        Parameters:
        key - annotation key
        Returns:
        true if the previous annotation has been tagged for removal