Class PartitionSet

  • All Implemented Interfaces:
    java.lang.Iterable<Pair<java.lang.Integer,​StructLike>>, java.util.Collection<Pair<java.lang.Integer,​StructLike>>, java.util.Set<Pair<java.lang.Integer,​StructLike>>

    public class PartitionSet
    extends java.lang.Object
    implements java.util.Set<Pair<java.lang.Integer,​StructLike>>
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.Set

        equals, hashCode, spliterator
    • Method Detail

      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<Pair<java.lang.Integer,​StructLike>>
        Specified by:
        size in interface java.util.Set<Pair<java.lang.Integer,​StructLike>>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Collection<Pair<java.lang.Integer,​StructLike>>
        Specified by:
        isEmpty in interface java.util.Set<Pair<java.lang.Integer,​StructLike>>
      • contains

        public boolean contains​(java.lang.Object o)
        Specified by:
        contains in interface java.util.Collection<Pair<java.lang.Integer,​StructLike>>
        Specified by:
        contains in interface java.util.Set<Pair<java.lang.Integer,​StructLike>>
      • contains

        public boolean contains​(int specId,
                                StructLike struct)
      • add

        public boolean add​(Pair<java.lang.Integer,​StructLike> pair)
        Specified by:
        add in interface java.util.Collection<Pair<java.lang.Integer,​StructLike>>
        Specified by:
        add in interface java.util.Set<Pair<java.lang.Integer,​StructLike>>
      • add

        public boolean add​(int specId,
                           StructLike struct)
      • remove

        public boolean remove​(java.lang.Object o)
        Specified by:
        remove in interface java.util.Collection<Pair<java.lang.Integer,​StructLike>>
        Specified by:
        remove in interface java.util.Set<Pair<java.lang.Integer,​StructLike>>
      • remove

        public boolean remove​(int specId,
                              StructLike struct)
      • iterator

        public java.util.Iterator<Pair<java.lang.Integer,​StructLike>> iterator()
        Specified by:
        iterator in interface java.util.Collection<Pair<java.lang.Integer,​StructLike>>
        Specified by:
        iterator in interface java.lang.Iterable<Pair<java.lang.Integer,​StructLike>>
        Specified by:
        iterator in interface java.util.Set<Pair<java.lang.Integer,​StructLike>>
      • toArray

        public java.lang.Object[] toArray()
        Specified by:
        toArray in interface java.util.Collection<Pair<java.lang.Integer,​StructLike>>
        Specified by:
        toArray in interface java.util.Set<Pair<java.lang.Integer,​StructLike>>
      • toArray

        public <T> T[] toArray​(T[] destArray)
        Specified by:
        toArray in interface java.util.Collection<Pair<java.lang.Integer,​StructLike>>
        Specified by:
        toArray in interface java.util.Set<Pair<java.lang.Integer,​StructLike>>
      • containsAll

        public boolean containsAll​(java.util.Collection<?> objects)
        Specified by:
        containsAll in interface java.util.Collection<Pair<java.lang.Integer,​StructLike>>
        Specified by:
        containsAll in interface java.util.Set<Pair<java.lang.Integer,​StructLike>>
      • addAll

        public boolean addAll​(java.util.Collection<? extends Pair<java.lang.Integer,​StructLike>> pairs)
        Specified by:
        addAll in interface java.util.Collection<Pair<java.lang.Integer,​StructLike>>
        Specified by:
        addAll in interface java.util.Set<Pair<java.lang.Integer,​StructLike>>
      • retainAll

        public boolean retainAll​(java.util.Collection<?> c)
        Specified by:
        retainAll in interface java.util.Collection<Pair<java.lang.Integer,​StructLike>>
        Specified by:
        retainAll in interface java.util.Set<Pair<java.lang.Integer,​StructLike>>
      • removeAll

        public boolean removeAll​(java.util.Collection<?> objects)
        Specified by:
        removeAll in interface java.util.Collection<Pair<java.lang.Integer,​StructLike>>
        Specified by:
        removeAll in interface java.util.Set<Pair<java.lang.Integer,​StructLike>>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<Pair<java.lang.Integer,​StructLike>>
        Specified by:
        clear in interface java.util.Set<Pair<java.lang.Integer,​StructLike>>