public class CharSequenceSet
extends java.lang.Object
implements java.util.Set<java.lang.CharSequence>, java.io.Serializable
Modifier and Type | Method and 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) |
public static CharSequenceSet of(java.lang.Iterable<java.lang.CharSequence> charSequences)
public static CharSequenceSet empty()
public int size()
size
in interface java.util.Collection<java.lang.CharSequence>
size
in interface java.util.Set<java.lang.CharSequence>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<java.lang.CharSequence>
isEmpty
in interface java.util.Set<java.lang.CharSequence>
public boolean contains(java.lang.Object obj)
contains
in interface java.util.Collection<java.lang.CharSequence>
contains
in interface java.util.Set<java.lang.CharSequence>
public java.util.Iterator<java.lang.CharSequence> iterator()
iterator
in interface java.lang.Iterable<java.lang.CharSequence>
iterator
in interface java.util.Collection<java.lang.CharSequence>
iterator
in interface java.util.Set<java.lang.CharSequence>
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<java.lang.CharSequence>
toArray
in interface java.util.Set<java.lang.CharSequence>
public <T> T[] toArray(T[] destArray)
toArray
in interface java.util.Collection<java.lang.CharSequence>
toArray
in interface java.util.Set<java.lang.CharSequence>
public boolean add(java.lang.CharSequence charSequence)
add
in interface java.util.Collection<java.lang.CharSequence>
add
in interface java.util.Set<java.lang.CharSequence>
public boolean remove(java.lang.Object obj)
remove
in interface java.util.Collection<java.lang.CharSequence>
remove
in interface java.util.Set<java.lang.CharSequence>
public boolean containsAll(java.util.Collection<?> objects)
containsAll
in interface java.util.Collection<java.lang.CharSequence>
containsAll
in interface java.util.Set<java.lang.CharSequence>
public boolean addAll(java.util.Collection<? extends java.lang.CharSequence> charSequences)
addAll
in interface java.util.Collection<java.lang.CharSequence>
addAll
in interface java.util.Set<java.lang.CharSequence>
public boolean retainAll(java.util.Collection<?> objects)
retainAll
in interface java.util.Collection<java.lang.CharSequence>
retainAll
in interface java.util.Set<java.lang.CharSequence>
public boolean removeAll(java.util.Collection<?> objects)
removeAll
in interface java.util.Collection<java.lang.CharSequence>
removeAll
in interface java.util.Set<java.lang.CharSequence>
public void clear()
clear
in interface java.util.Collection<java.lang.CharSequence>
clear
in interface java.util.Set<java.lang.CharSequence>