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 Detail

      • keys

        Set<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​(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