Class BoundedPartition

    • Constructor Detail

      • BoundedPartition

        public BoundedPartition​(int id)
      • BoundedPartition

        public BoundedPartition​(int id,
                                long size)
    • Method Detail

      • isBounded

        public boolean isBounded()
        Description copied from interface: Partition
        Check if this is bounded or unbounded partition.
        Specified by:
        isBounded in interface Partition
        Returns:
        true if this is bounded partition
      • getId

        public int getId()
        Description copied from interface: Partition
        Retrieve id of the partition.
        Specified by:
        getId in interface Partition
        Returns:
        if od the partition
      • size

        public long size()
        Description copied from interface: Partition
        Estimate size of this partition.
        Specified by:
        size in interface Partition
        Returns:
        estimated size of this partition or -1 if unknown
      • toString

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