public class PartitionSet extends java.lang.Object implements java.util.Set<Pair<java.lang.Integer,StructLike>>
Modifier and Type | Method and Description |
---|---|
boolean |
add(int specId,
StructLike struct) |
boolean |
add(Pair<java.lang.Integer,StructLike> pair) |
boolean |
addAll(java.util.Collection<? extends Pair<java.lang.Integer,StructLike>> pairs) |
void |
clear() |
boolean |
contains(int specId,
StructLike struct) |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> objects) |
static PartitionSet |
create(java.util.Map<java.lang.Integer,PartitionSpec> specsById) |
boolean |
isEmpty() |
java.util.Iterator<Pair<java.lang.Integer,StructLike>> |
iterator() |
boolean |
remove(int specId,
StructLike struct) |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> objects) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] destArray) |
public static PartitionSet create(java.util.Map<java.lang.Integer,PartitionSpec> specsById)
public int size()
size
in interface java.util.Collection<Pair<java.lang.Integer,StructLike>>
size
in interface java.util.Set<Pair<java.lang.Integer,StructLike>>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<Pair<java.lang.Integer,StructLike>>
isEmpty
in interface java.util.Set<Pair<java.lang.Integer,StructLike>>
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection<Pair<java.lang.Integer,StructLike>>
contains
in interface java.util.Set<Pair<java.lang.Integer,StructLike>>
public boolean contains(int specId, StructLike struct)
public boolean add(Pair<java.lang.Integer,StructLike> pair)
add
in interface java.util.Collection<Pair<java.lang.Integer,StructLike>>
add
in interface java.util.Set<Pair<java.lang.Integer,StructLike>>
public boolean add(int specId, StructLike struct)
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<Pair<java.lang.Integer,StructLike>>
remove
in interface java.util.Set<Pair<java.lang.Integer,StructLike>>
public boolean remove(int specId, StructLike struct)
public java.util.Iterator<Pair<java.lang.Integer,StructLike>> iterator()
iterator
in interface java.lang.Iterable<Pair<java.lang.Integer,StructLike>>
iterator
in interface java.util.Collection<Pair<java.lang.Integer,StructLike>>
iterator
in interface java.util.Set<Pair<java.lang.Integer,StructLike>>
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<Pair<java.lang.Integer,StructLike>>
toArray
in interface java.util.Set<Pair<java.lang.Integer,StructLike>>
public <T> T[] toArray(T[] destArray)
toArray
in interface java.util.Collection<Pair<java.lang.Integer,StructLike>>
toArray
in interface java.util.Set<Pair<java.lang.Integer,StructLike>>
public boolean containsAll(java.util.Collection<?> objects)
containsAll
in interface java.util.Collection<Pair<java.lang.Integer,StructLike>>
containsAll
in interface java.util.Set<Pair<java.lang.Integer,StructLike>>
public boolean addAll(java.util.Collection<? extends Pair<java.lang.Integer,StructLike>> pairs)
addAll
in interface java.util.Collection<Pair<java.lang.Integer,StructLike>>
addAll
in interface java.util.Set<Pair<java.lang.Integer,StructLike>>
public boolean retainAll(java.util.Collection<?> c)
retainAll
in interface java.util.Collection<Pair<java.lang.Integer,StructLike>>
retainAll
in interface java.util.Set<Pair<java.lang.Integer,StructLike>>
public boolean removeAll(java.util.Collection<?> objects)
removeAll
in interface java.util.Collection<Pair<java.lang.Integer,StructLike>>
removeAll
in interface java.util.Set<Pair<java.lang.Integer,StructLike>>
public void clear()
clear
in interface java.util.Collection<Pair<java.lang.Integer,StructLike>>
clear
in interface java.util.Set<Pair<java.lang.Integer,StructLike>>