Class AbstractSpecialisedImmutableSet<K>

    • Constructor Detail

      • AbstractSpecialisedImmutableSet

        public AbstractSpecialisedImmutableSet()
    • Method Detail

      • setOf

        public static <K> Set.Immutable<K> setOf​(K key1,
                                                 K key2)
      • setOf

        public static <K> Set.Immutable<K> setOf​(K key1,
                                                 K key2,
                                                 K key3)
      • setOf

        public static <K> Set.Immutable<K> setOf​(K key1,
                                                 K key2,
                                                 K key3,
                                                 K key4)
      • setOf

        public static <K> Set.Immutable<K> setOf​(K key1,
                                                 K key2,
                                                 K key3,
                                                 K key4,
                                                 K key5)
      • setOf

        public static <K> Set.Immutable<K> setOf​(K key1,
                                                 K key2,
                                                 K key3,
                                                 K key4,
                                                 K key5,
                                                 K key6)
      • setOf

        public static <K> Set.Immutable<K> setOf​(java.util.Set<K> set)
      • add

        public boolean add​(K k)
        Specified by:
        add in interface java.util.Collection<K>
        Specified by:
        add in interface java.util.Set<K>
        Overrides:
        add in class AbstractImmutableSet<K>
      • remove

        public boolean remove​(java.lang.Object o)
        Specified by:
        remove in interface java.util.Collection<K>
        Specified by:
        remove in interface java.util.Set<K>
        Overrides:
        remove in class AbstractImmutableSet<K>
      • addAll

        public boolean addAll​(java.util.Collection<? extends K> c)
        Specified by:
        addAll in interface java.util.Collection<K>
        Specified by:
        addAll in interface java.util.Set<K>
        Overrides:
        addAll in class AbstractImmutableSet<K>
      • removeAll

        public boolean removeAll​(java.util.Collection<?> c)
        Specified by:
        removeAll in interface java.util.Collection<K>
        Specified by:
        removeAll in interface java.util.Set<K>
        Overrides:
        removeAll in class AbstractImmutableSet<K>
      • retainAll

        public boolean retainAll​(java.util.Collection<?> c)
        Specified by:
        retainAll in interface java.util.Collection<K>
        Specified by:
        retainAll in interface java.util.Set<K>
        Overrides:
        retainAll in class AbstractImmutableSet<K>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<K>
        Specified by:
        clear in interface java.util.Set<K>
        Overrides:
        clear in class AbstractImmutableSet<K>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Collection<K>
        Specified by:
        isEmpty in interface Set<K>
        Specified by:
        isEmpty in interface java.util.Set<K>
        Overrides:
        isEmpty in class java.util.AbstractCollection<K>
      • iterator

        public java.util.Iterator<K> iterator()
        Specified by:
        iterator in interface java.util.Collection<K>
        Specified by:
        iterator in interface java.lang.Iterable<K>
        Specified by:
        iterator in interface java.util.Set<K>
        Specified by:
        iterator in class java.util.AbstractCollection<K>
      • equals

        public boolean equals​(java.lang.Object other)
        Specified by:
        equals in interface java.util.Collection<K>
        Specified by:
        equals in interface Set<K>
        Specified by:
        equals in interface java.util.Set<K>
        Overrides:
        equals in class java.util.AbstractSet<K>
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class java.lang.Object
        Throws:
        java.lang.CloneNotSupportedException