Class CharSequenceSet

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<java.lang.CharSequence>, java.util.Collection<java.lang.CharSequence>, java.util.Set<java.lang.CharSequence>

    public class CharSequenceSet
    extends java.lang.Object
    implements java.util.Set<java.lang.CharSequence>, java.io.Serializable
    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean add​(java.lang.CharSequence charSequence)  
      boolean addAll​(java.util.Collection<? extends java.lang.CharSequence> charSequences)  
      void clear()  
      boolean contains​(java.lang.Object obj)  
      boolean containsAll​(java.util.Collection<?> objects)  
      static CharSequenceSet empty()  
      boolean isEmpty()  
      java.util.Iterator<java.lang.CharSequence> iterator()  
      static CharSequenceSet of​(java.lang.Iterable<java.lang.CharSequence> charSequences)  
      boolean remove​(java.lang.Object obj)  
      boolean removeAll​(java.util.Collection<?> objects)  
      boolean retainAll​(java.util.Collection<?> objects)  
      int size()  
      java.lang.Object[] toArray()  
      <T> T[] toArray​(T[] destArray)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • 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

        equals, hashCode, spliterator
    • Method Detail

      • of

        public static CharSequenceSet of​(java.lang.Iterable<java.lang.CharSequence> charSequences)
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<java.lang.CharSequence>
        Specified by:
        size in interface java.util.Set<java.lang.CharSequence>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Collection<java.lang.CharSequence>
        Specified by:
        isEmpty in interface java.util.Set<java.lang.CharSequence>
      • contains

        public boolean contains​(java.lang.Object obj)
        Specified by:
        contains in interface java.util.Collection<java.lang.CharSequence>
        Specified by:
        contains in interface java.util.Set<java.lang.CharSequence>
      • iterator

        public java.util.Iterator<java.lang.CharSequence> iterator()
        Specified by:
        iterator in interface java.util.Collection<java.lang.CharSequence>
        Specified by:
        iterator in interface java.lang.Iterable<java.lang.CharSequence>
        Specified by:
        iterator in interface java.util.Set<java.lang.CharSequence>
      • toArray

        public java.lang.Object[] toArray()
        Specified by:
        toArray in interface java.util.Collection<java.lang.CharSequence>
        Specified by:
        toArray in interface java.util.Set<java.lang.CharSequence>
      • toArray

        public <T> T[] toArray​(T[] destArray)
        Specified by:
        toArray in interface java.util.Collection<java.lang.CharSequence>
        Specified by:
        toArray in interface java.util.Set<java.lang.CharSequence>
      • add

        public boolean add​(java.lang.CharSequence charSequence)
        Specified by:
        add in interface java.util.Collection<java.lang.CharSequence>
        Specified by:
        add in interface java.util.Set<java.lang.CharSequence>
      • remove

        public boolean remove​(java.lang.Object obj)
        Specified by:
        remove in interface java.util.Collection<java.lang.CharSequence>
        Specified by:
        remove in interface java.util.Set<java.lang.CharSequence>
      • containsAll

        public boolean containsAll​(java.util.Collection<?> objects)
        Specified by:
        containsAll in interface java.util.Collection<java.lang.CharSequence>
        Specified by:
        containsAll in interface java.util.Set<java.lang.CharSequence>
      • addAll

        public boolean addAll​(java.util.Collection<? extends java.lang.CharSequence> charSequences)
        Specified by:
        addAll in interface java.util.Collection<java.lang.CharSequence>
        Specified by:
        addAll in interface java.util.Set<java.lang.CharSequence>
      • retainAll

        public boolean retainAll​(java.util.Collection<?> objects)
        Specified by:
        retainAll in interface java.util.Collection<java.lang.CharSequence>
        Specified by:
        retainAll in interface java.util.Set<java.lang.CharSequence>
      • removeAll

        public boolean removeAll​(java.util.Collection<?> objects)
        Specified by:
        removeAll in interface java.util.Collection<java.lang.CharSequence>
        Specified by:
        removeAll in interface java.util.Set<java.lang.CharSequence>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<java.lang.CharSequence>
        Specified by:
        clear in interface java.util.Set<java.lang.CharSequence>