Package org.apache.iceberg.util
Class StructLikeSet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<StructLike>
-
- org.apache.iceberg.util.StructLikeSet
-
- All Implemented Interfaces:
java.lang.Iterable<StructLike>
,java.util.Collection<StructLike>
,java.util.Set<StructLike>
public class StructLikeSet extends java.util.AbstractSet<StructLike> implements java.util.Set<StructLike>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(StructLike struct)
boolean
addAll(java.util.Collection<? extends StructLike> structs)
void
clear()
boolean
contains(java.lang.Object obj)
boolean
containsAll(java.util.Collection<?> objects)
static StructLikeSet
create(Types.StructType type)
boolean
equals(java.lang.Object o)
int
hashCode()
boolean
isEmpty()
java.util.Iterator<StructLike>
iterator()
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)
-
-
-
Method Detail
-
create
public static StructLikeSet create(Types.StructType type)
-
size
public int size()
- Specified by:
size
in interfacejava.util.Collection<StructLike>
- Specified by:
size
in interfacejava.util.Set<StructLike>
- Specified by:
size
in classjava.util.AbstractCollection<StructLike>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacejava.util.Collection<StructLike>
- Specified by:
isEmpty
in interfacejava.util.Set<StructLike>
- Overrides:
isEmpty
in classjava.util.AbstractCollection<StructLike>
-
contains
public boolean contains(java.lang.Object obj)
- Specified by:
contains
in interfacejava.util.Collection<StructLike>
- Specified by:
contains
in interfacejava.util.Set<StructLike>
- Overrides:
contains
in classjava.util.AbstractCollection<StructLike>
-
iterator
public java.util.Iterator<StructLike> iterator()
- Specified by:
iterator
in interfacejava.util.Collection<StructLike>
- Specified by:
iterator
in interfacejava.lang.Iterable<StructLike>
- Specified by:
iterator
in interfacejava.util.Set<StructLike>
- Specified by:
iterator
in classjava.util.AbstractCollection<StructLike>
-
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray
in interfacejava.util.Collection<StructLike>
- Specified by:
toArray
in interfacejava.util.Set<StructLike>
- Overrides:
toArray
in classjava.util.AbstractCollection<StructLike>
-
toArray
public <T> T[] toArray(T[] destArray)
- Specified by:
toArray
in interfacejava.util.Collection<StructLike>
- Specified by:
toArray
in interfacejava.util.Set<StructLike>
- Overrides:
toArray
in classjava.util.AbstractCollection<StructLike>
-
add
public boolean add(StructLike struct)
- Specified by:
add
in interfacejava.util.Collection<StructLike>
- Specified by:
add
in interfacejava.util.Set<StructLike>
- Overrides:
add
in classjava.util.AbstractCollection<StructLike>
-
remove
public boolean remove(java.lang.Object obj)
- Specified by:
remove
in interfacejava.util.Collection<StructLike>
- Specified by:
remove
in interfacejava.util.Set<StructLike>
- Overrides:
remove
in classjava.util.AbstractCollection<StructLike>
-
containsAll
public boolean containsAll(java.util.Collection<?> objects)
- Specified by:
containsAll
in interfacejava.util.Collection<StructLike>
- Specified by:
containsAll
in interfacejava.util.Set<StructLike>
- Overrides:
containsAll
in classjava.util.AbstractCollection<StructLike>
-
addAll
public boolean addAll(java.util.Collection<? extends StructLike> structs)
- Specified by:
addAll
in interfacejava.util.Collection<StructLike>
- Specified by:
addAll
in interfacejava.util.Set<StructLike>
- Overrides:
addAll
in classjava.util.AbstractCollection<StructLike>
-
retainAll
public boolean retainAll(java.util.Collection<?> objects)
- Specified by:
retainAll
in interfacejava.util.Collection<StructLike>
- Specified by:
retainAll
in interfacejava.util.Set<StructLike>
- Overrides:
retainAll
in classjava.util.AbstractCollection<StructLike>
-
removeAll
public boolean removeAll(java.util.Collection<?> objects)
- Specified by:
removeAll
in interfacejava.util.Collection<StructLike>
- Specified by:
removeAll
in interfacejava.util.Set<StructLike>
- Overrides:
removeAll
in classjava.util.AbstractSet<StructLike>
-
clear
public void clear()
- Specified by:
clear
in interfacejava.util.Collection<StructLike>
- Specified by:
clear
in interfacejava.util.Set<StructLike>
- Overrides:
clear
in classjava.util.AbstractCollection<StructLike>
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interfacejava.util.Collection<StructLike>
- Specified by:
equals
in interfacejava.util.Set<StructLike>
- Overrides:
equals
in classjava.util.AbstractSet<StructLike>
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.util.Collection<StructLike>
- Specified by:
hashCode
in interfacejava.util.Set<StructLike>
- Overrides:
hashCode
in classjava.util.AbstractSet<StructLike>
-
-