Interface Attributes.Entry

All Superinterfaces:
Collection<String>, Iterable<String>, List<String>
All Known Subinterfaces:
Attributes.SetEntry
All Known Implementing Classes:
SimpleAttributesEntry
Enclosing interface:
Attributes

public static interface Attributes.Entry extends List<String>
The entry collection for a mapping.
  • Method Details

    • getKey

      String getKey()
      Get the mapping key.
      Returns:
      the mapping key
    • removeRange

      void removeRange(int from, int to)
      Remove all the values for the given key between the from index (inclusive) and the to index (exclusive).
      Parameters:
      from - the start index (inclusive)
      to - the end index (exclusive)
      Throws:
      IndexOutOfBoundsException - if from or to is outside of the allowed range
    • spliterator

      default Spliterator<String> spliterator()
      Create a spliterator over the elements of this ordered and non-null collection.
      Specified by:
      spliterator in interface Collection<String>
      Specified by:
      spliterator in interface Iterable<String>
      Specified by:
      spliterator in interface List<String>
      Returns:
      the spliterator