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 equals​(java.lang.Object other)  
      int hashCode()  
      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)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, 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

        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>
      • equals

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

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Collection<java.lang.CharSequence>
        Specified by:
        hashCode in interface java.util.Set<java.lang.CharSequence>
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object