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 |
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() |
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>
public boolean equals(java.lang.Object other)
equals
in interface java.util.Collection<java.lang.CharSequence>
equals
in interface java.util.Set<java.lang.CharSequence>
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface java.util.Collection<java.lang.CharSequence>
hashCode
in interface java.util.Set<java.lang.CharSequence>
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object