Package org.apache.iceberg.util
Class CharSequenceSet
- java.lang.Object
-
- org.apache.iceberg.util.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()
-
-
-
Method Detail
-
of
public static CharSequenceSet of(java.lang.Iterable<java.lang.CharSequence> charSequences)
-
empty
public static CharSequenceSet empty()
-
size
public int size()
- Specified by:
size
in interfacejava.util.Collection<java.lang.CharSequence>
- Specified by:
size
in interfacejava.util.Set<java.lang.CharSequence>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacejava.util.Collection<java.lang.CharSequence>
- Specified by:
isEmpty
in interfacejava.util.Set<java.lang.CharSequence>
-
contains
public boolean contains(java.lang.Object obj)
- Specified by:
contains
in interfacejava.util.Collection<java.lang.CharSequence>
- Specified by:
contains
in interfacejava.util.Set<java.lang.CharSequence>
-
iterator
public java.util.Iterator<java.lang.CharSequence> iterator()
- Specified by:
iterator
in interfacejava.util.Collection<java.lang.CharSequence>
- Specified by:
iterator
in interfacejava.lang.Iterable<java.lang.CharSequence>
- Specified by:
iterator
in interfacejava.util.Set<java.lang.CharSequence>
-
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray
in interfacejava.util.Collection<java.lang.CharSequence>
- Specified by:
toArray
in interfacejava.util.Set<java.lang.CharSequence>
-
toArray
public <T> T[] toArray(T[] destArray)
- Specified by:
toArray
in interfacejava.util.Collection<java.lang.CharSequence>
- Specified by:
toArray
in interfacejava.util.Set<java.lang.CharSequence>
-
add
public boolean add(java.lang.CharSequence charSequence)
- Specified by:
add
in interfacejava.util.Collection<java.lang.CharSequence>
- Specified by:
add
in interfacejava.util.Set<java.lang.CharSequence>
-
remove
public boolean remove(java.lang.Object obj)
- Specified by:
remove
in interfacejava.util.Collection<java.lang.CharSequence>
- Specified by:
remove
in interfacejava.util.Set<java.lang.CharSequence>
-
containsAll
public boolean containsAll(java.util.Collection<?> objects)
- Specified by:
containsAll
in interfacejava.util.Collection<java.lang.CharSequence>
- Specified by:
containsAll
in interfacejava.util.Set<java.lang.CharSequence>
-
addAll
public boolean addAll(java.util.Collection<? extends java.lang.CharSequence> charSequences)
- Specified by:
addAll
in interfacejava.util.Collection<java.lang.CharSequence>
- Specified by:
addAll
in interfacejava.util.Set<java.lang.CharSequence>
-
retainAll
public boolean retainAll(java.util.Collection<?> objects)
- Specified by:
retainAll
in interfacejava.util.Collection<java.lang.CharSequence>
- Specified by:
retainAll
in interfacejava.util.Set<java.lang.CharSequence>
-
removeAll
public boolean removeAll(java.util.Collection<?> objects)
- Specified by:
removeAll
in interfacejava.util.Collection<java.lang.CharSequence>
- Specified by:
removeAll
in interfacejava.util.Set<java.lang.CharSequence>
-
clear
public void clear()
- Specified by:
clear
in interfacejava.util.Collection<java.lang.CharSequence>
- Specified by:
clear
in interfacejava.util.Set<java.lang.CharSequence>
-
equals
public boolean equals(java.lang.Object other)
- Specified by:
equals
in interfacejava.util.Collection<java.lang.CharSequence>
- Specified by:
equals
in interfacejava.util.Set<java.lang.CharSequence>
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.util.Collection<java.lang.CharSequence>
- Specified by:
hashCode
in interfacejava.util.Set<java.lang.CharSequence>
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-