Class ClusterByPartitions

  • All Implemented Interfaces:
    Iterable<ClusterByPartition>

    public class ClusterByPartitions
    extends Object
    implements Iterable<ClusterByPartition>
    Holder object for a set of ClusterByPartition. There are no preconditions put upon the partitions, except that there is at least one of them. In particular, they are not required to abut each other or to be non-overlapping. Use allAbutting() to check if this particular list of partitions is in fact all abutting (and, therefore, also non-overlapping).
    • Method Detail

      • allAbutting

        public boolean allAbutting()
        Whether this list of partitions is all abutting, meaning: each partition's start is equal to the previous partition's end. Note that the start of the first partition, and the end of the last partition, may or may not be unbounded. So this list of partitions may not cover the entire space even if they are all abutting.
      • size

        public int size()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object