Package org.apache.iceberg.util
Class StructLikeSet
- All Implemented Interfaces:
Iterable<StructLike>
,Collection<StructLike>
,Set<StructLike>
-
Method Summary
Modifier and TypeMethodDescriptionboolean
add
(StructLike struct) boolean
addAll
(Collection<? extends StructLike> structs) void
clear()
boolean
boolean
containsAll
(Collection<?> objects) static StructLikeSet
create
(Types.StructType type) boolean
int
hashCode()
boolean
isEmpty()
iterator()
boolean
boolean
removeAll
(Collection<?> objects) boolean
retainAll
(Collection<?> objects) int
size()
Object[]
toArray()
<T> T[]
toArray
(T[] destArray) Methods inherited from class java.util.AbstractCollection
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
-
create
-
size
public int size()- Specified by:
size
in interfaceCollection<StructLike>
- Specified by:
size
in interfaceSet<StructLike>
- Specified by:
size
in classAbstractCollection<StructLike>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<StructLike>
- Specified by:
isEmpty
in interfaceSet<StructLike>
- Overrides:
isEmpty
in classAbstractCollection<StructLike>
-
contains
- Specified by:
contains
in interfaceCollection<StructLike>
- Specified by:
contains
in interfaceSet<StructLike>
- Overrides:
contains
in classAbstractCollection<StructLike>
-
iterator
- Specified by:
iterator
in interfaceCollection<StructLike>
- Specified by:
iterator
in interfaceIterable<StructLike>
- Specified by:
iterator
in interfaceSet<StructLike>
- Specified by:
iterator
in classAbstractCollection<StructLike>
-
toArray
- Specified by:
toArray
in interfaceCollection<StructLike>
- Specified by:
toArray
in interfaceSet<StructLike>
- Overrides:
toArray
in classAbstractCollection<StructLike>
-
toArray
public <T> T[] toArray(T[] destArray) - Specified by:
toArray
in interfaceCollection<StructLike>
- Specified by:
toArray
in interfaceSet<StructLike>
- Overrides:
toArray
in classAbstractCollection<StructLike>
-
add
- Specified by:
add
in interfaceCollection<StructLike>
- Specified by:
add
in interfaceSet<StructLike>
- Overrides:
add
in classAbstractCollection<StructLike>
-
remove
- Specified by:
remove
in interfaceCollection<StructLike>
- Specified by:
remove
in interfaceSet<StructLike>
- Overrides:
remove
in classAbstractCollection<StructLike>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<StructLike>
- Specified by:
containsAll
in interfaceSet<StructLike>
- Overrides:
containsAll
in classAbstractCollection<StructLike>
-
addAll
- Specified by:
addAll
in interfaceCollection<StructLike>
- Specified by:
addAll
in interfaceSet<StructLike>
- Overrides:
addAll
in classAbstractCollection<StructLike>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<StructLike>
- Specified by:
retainAll
in interfaceSet<StructLike>
- Overrides:
retainAll
in classAbstractCollection<StructLike>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<StructLike>
- Specified by:
removeAll
in interfaceSet<StructLike>
- Overrides:
removeAll
in classAbstractSet<StructLike>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<StructLike>
- Specified by:
clear
in interfaceSet<StructLike>
- Overrides:
clear
in classAbstractCollection<StructLike>
-
equals
- Specified by:
equals
in interfaceCollection<StructLike>
- Specified by:
equals
in interfaceSet<StructLike>
- Overrides:
equals
in classAbstractSet<StructLike>
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<StructLike>
- Specified by:
hashCode
in interfaceSet<StructLike>
- Overrides:
hashCode
in classAbstractSet<StructLike>
-