Class AttributeSet

    • Constructor Detail

      • AttributeSet

        public AttributeSet()
        Constructs an empty attribute container. It is dedicated to the persistence engine.
    • Method Detail

      • stream

        public Stream<Map.Entry<String,​String>> stream()
        Streams the attendees in this calendar component.
        Returns:
        a Stream with the attendees in this calendar component.
      • set

        public void set​(String name,
                        String value)
        Sets the specified attributes.
        Parameters:
        name - the attribute name.
        value - the attribute value.
      • remove

        public void remove​(String name)
        Remove the specified attribute.
        Parameters:
        name - the name of the attribute to remove.
      • removeIf

        public AttributeSet removeIf​(Predicate<Map.Entry<String,​String>> filter)
        Removes all of the attributes that match the specified filter.
        Parameters:
        filter - the predicate against which each attribute is filtered.
        Returns:
        the updated attributes in this calendar component.
      • isEmpty

        public boolean isEmpty()
        Is this set of attributes empty?
        Returns:
        true if there is no attributes set, false otherwise.
      • get

        public Optional<String> get​(String name)
        Gets the value of the specified attribute or nothing is there is no a such attribute.
        Parameters:
        name - the name of an attribute.
        Returns:
        optionally the value of the specified attribute.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • addAllFrom

        public void addAllFrom​(AttributeSet attributes)
        Adds to this attributes all those from the specified ones.
        Parameters:
        attributes - the attributes to add.
      • setAllFrom

        public void setAllFrom​(AttributeSet attributes)
        Sets to this attributes all those from the specified ones.
        Parameters:
        attributes - the attributes to add.
      • copy

        public AttributeSet copy()
        Copies this object into another one.
        Returns:
        the copied object.