Package org.apache.iceberg.util
Class CharSequenceSet
java.lang.Object
org.apache.iceberg.util.CharSequenceSet
- All Implemented Interfaces:
Serializable
,Iterable<CharSequence>
,Collection<CharSequence>
,Set<CharSequence>
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
add
(CharSequence charSequence) boolean
addAll
(Collection<? extends CharSequence> charSequences) void
clear()
boolean
boolean
containsAll
(Collection<?> objects) static CharSequenceSet
empty()
boolean
int
hashCode()
boolean
isEmpty()
iterator()
static CharSequenceSet
of
(Iterable<CharSequence> charSequences) boolean
boolean
removeAll
(Collection<?> objects) boolean
retainAll
(Collection<?> objects) int
size()
Object[]
toArray()
<T> T[]
toArray
(T[] destArray) 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.util.Set
spliterator
-
Method Details
-
of
-
empty
-
size
public int size()- Specified by:
size
in interfaceCollection<CharSequence>
- Specified by:
size
in interfaceSet<CharSequence>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<CharSequence>
- Specified by:
isEmpty
in interfaceSet<CharSequence>
-
contains
- Specified by:
contains
in interfaceCollection<CharSequence>
- Specified by:
contains
in interfaceSet<CharSequence>
-
iterator
- Specified by:
iterator
in interfaceCollection<CharSequence>
- Specified by:
iterator
in interfaceIterable<CharSequence>
- Specified by:
iterator
in interfaceSet<CharSequence>
-
toArray
- Specified by:
toArray
in interfaceCollection<CharSequence>
- Specified by:
toArray
in interfaceSet<CharSequence>
-
toArray
public <T> T[] toArray(T[] destArray) - Specified by:
toArray
in interfaceCollection<CharSequence>
- Specified by:
toArray
in interfaceSet<CharSequence>
-
add
- Specified by:
add
in interfaceCollection<CharSequence>
- Specified by:
add
in interfaceSet<CharSequence>
-
remove
- Specified by:
remove
in interfaceCollection<CharSequence>
- Specified by:
remove
in interfaceSet<CharSequence>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<CharSequence>
- Specified by:
containsAll
in interfaceSet<CharSequence>
-
addAll
- Specified by:
addAll
in interfaceCollection<CharSequence>
- Specified by:
addAll
in interfaceSet<CharSequence>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<CharSequence>
- Specified by:
retainAll
in interfaceSet<CharSequence>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<CharSequence>
- Specified by:
removeAll
in interfaceSet<CharSequence>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<CharSequence>
- Specified by:
clear
in interfaceSet<CharSequence>
-
equals
- Specified by:
equals
in interfaceCollection<CharSequence>
- Specified by:
equals
in interfaceSet<CharSequence>
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<CharSequence>
- Specified by:
hashCode
in interfaceSet<CharSequence>
- Overrides:
hashCode
in classObject
-
toString
-