Interface RSet<T>

  • All Superinterfaces:
    java.util.Collection<T>, java.lang.Iterable<T>, RCollection<T>, java.util.Set<T>, ToString
    All Known Implementing Classes:
    RSetBySrc

    public interface RSet<T>
    extends RCollection<T>, java.util.Set<T>
    • Method Summary

      All Methods Static Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default boolean addAll​(@NotNull java.util.Collection<? extends T> c)  
      default boolean addAndRemove​(java.util.Set<T> s)  
      default void clear()  
      default boolean containsAll​(@NotNull java.util.Collection<?> c)  
      default void link​(RSet<T> other)  
      default <T2> void link​(RSet<T2> other, AFunction<T,​T2> f, AFunction<T2,​T> back)  
      default <T2> RSet<T2> map​(AFunction<T,​T2> f)  
      default <T2> @NotNull RSet<T2> map​(AFunction<T,​T2> f, AFunction<T2,​T> back)  
      static <E> RSet<E> of​(java.util.Set<E> src)  
      default boolean removeAll​(@NotNull java.util.Collection<?> c)  
      default boolean retainAll​(@NotNull java.util.Collection<?> c)  
      default <K> RMap<K,​T> toMap​(AFunction<T,​K> keyGetter)  
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.Set

        add, contains, equals, hashCode, isEmpty, iterator, remove, size, spliterator, toArray, toArray
    • Method Detail

      • retainAll

        default boolean retainAll​(@NotNull
                                  @NotNull java.util.Collection<?> c)
        Specified by:
        retainAll in interface java.util.Collection<T>
        Specified by:
        retainAll in interface RCollection<T>
        Specified by:
        retainAll in interface java.util.Set<T>
      • addAndRemove

        default boolean addAndRemove​(java.util.Set<T> s)
      • clear

        default void clear()
        Specified by:
        clear in interface java.util.Collection<T>
        Specified by:
        clear in interface RCollection<T>
        Specified by:
        clear in interface java.util.Set<T>
      • addAll

        default boolean addAll​(@NotNull
                               @NotNull java.util.Collection<? extends T> c)
        Specified by:
        addAll in interface java.util.Collection<T>
        Specified by:
        addAll in interface RCollection<T>
        Specified by:
        addAll in interface java.util.Set<T>
      • containsAll

        default boolean containsAll​(@NotNull
                                    @NotNull java.util.Collection<?> c)
        Specified by:
        containsAll in interface java.util.Collection<T>
        Specified by:
        containsAll in interface RCollection<T>
        Specified by:
        containsAll in interface java.util.Set<T>
      • removeAll

        default boolean removeAll​(@NotNull
                                  @NotNull java.util.Collection<?> c)
        Specified by:
        removeAll in interface java.util.Collection<T>
        Specified by:
        removeAll in interface RCollection<T>
        Specified by:
        removeAll in interface java.util.Set<T>
      • link

        default void link​(RSet<T> other)
      • of

        static <E> RSet<E> of​(java.util.Set<E> src)