Class RangeSets


  • public class RangeSets
    extends Object
    Reusable assertions for RangeSets.
    Author:
    Ilya_Koshaleu
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) org.assertj.core.internal.Failures failures  
      private static RangeSets INSTANCE  
    • Constructor Summary

      Constructors 
      Constructor Description
      RangeSets()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T extends Comparable<T>>
      void
      assertContains​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, T[] values)
      Asserts that the given RangeSet contains the given values.
      <T extends Comparable<T>>
      void
      assertContainsAll​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, Iterable<T> values)
      Asserts that the given RangeSet contains all the given values.
      <T extends Comparable<T>>
      void
      assertContainsAnyOf​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, T[] values)
      Asserts that the given RangeSet contains at least one of the given values.
      <T extends Comparable<T>>
      void
      assertContainsAnyRangesOf​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, Iterable<? extends T> values)
      Asserts that the given RangeSet contains at least one element of the given values.
      <T extends Comparable<T>>
      void
      assertDoesNotContain​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, T[] values)
      Asserts that the given RangeSet does not contain the given values.
      <T extends Comparable<T>>
      void
      assertDoesNotContainAll​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, Iterable<? extends T> values)
      Asserts that the given RangeSet does not contain any elements of the given values.
      <T extends Comparable<T>>
      void
      assertDoesNotEnclose​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)
      Asserts that the given RangeSet does not enclose the given ranges.
      <T extends Comparable<T>>
      void
      assertDoesNotIntersect​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)
      Asserts that the given RangeSet does not intersect the given ranges.
      <T extends Comparable<T>>
      void
      assertDoesNotIntersectAnyRangeFrom​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.RangeSet<T> rangeSet)
      Asserts that the given RangeSet does not intersect all elements from the given range set.
      <T extends Comparable<T>>
      void
      assertDoesNotIntersectAnyRangeFrom​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, Iterable<? extends com.google.common.collect.Range<T>> range)
      Asserts that the given RangeSet does not intersect all elements from the given range.
      <T extends Comparable<T>>
      void
      assertEmpty​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual)
      Asserts that the given RangeSet is empty.
      <T extends Comparable<T>>
      void
      assertEncloses​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)
      Asserts that the given RangeSet encloses the given ranges.
      <T extends Comparable<T>>
      void
      assertEnclosesAll​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.RangeSet<T> rangeSet)
      Asserts that the given RangeSet encloses all elements of the given range set.
      <T extends Comparable<T>>
      void
      assertEnclosesAll​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, Iterable<? extends com.google.common.collect.Range<T>> range)
      Asserts that the given RangeSet encloses all elements of the given range.
      <T extends Comparable<T>>
      void
      assertEnclosesAnyOf​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)
      Asserts that the given RangeSet encloses the given ranges.
      <T extends Comparable<T>>
      void
      assertEnclosesAnyRangesOf​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.RangeSet<T> rangeSet)
      Asserts that the given RangeSet encloses all elements of the given range set.
      <T extends Comparable<T>>
      void
      assertEnclosesAnyRangesOf​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, Iterable<? extends com.google.common.collect.Range<T>> range)
      Asserts that the given RangeSet encloses all elements of the given range.
      void assertHasSize​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<?> actual, int size)
      Asserts that the actual RangeSet has specific size.
      <T extends Comparable<T>>
      void
      assertIntersects​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)
      Asserts that the given RangeSet intersects the given ranges.
      <T extends Comparable<T>>
      void
      assertIntersectsAll​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.RangeSet<T> rangeSet)
      Asserts that the given RangeSet intersects all the given values of range set.
      <T extends Comparable<T>>
      void
      assertIntersectsAll​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, Iterable<? extends com.google.common.collect.Range<T>> range)
      Asserts that the given RangeSet intersects all the given ranges.
      <T extends Comparable<T>>
      void
      assertIntersectsAnyOf​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)
      Asserts that the given RangeSet intersects at least one of the given ranges.
      <T extends Comparable<T>>
      void
      assertIntersectsAnyRangesOf​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.RangeSet<T> rangeSet)
      Asserts that the given RangeSet intersects at least one element of the given range set.
      <T extends Comparable<T>>
      void
      assertIntersectsAnyRangesOf​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, Iterable<? extends com.google.common.collect.Range<T>> range)
      Asserts that the given RangeSet intersects at least one element of the given range.
      <T extends Comparable<T>>
      void
      assertNotEmpty​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual)
      Asserts that the given RangeSet is not empty.
      private void assertNotNull​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<?> actual)  
      <T extends Comparable<T>>
      void
      assertNullOrEmpty​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual)
      Asserts that the given RangeSet is null or empty.
      private void assertRangeSetContainsAnyGivenValues​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet actual, Comparable[] values)  
      private void assertRangeSetContainsGivenValues​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet actual, Comparable[] values)  
      private void assertRangeSetDoesNotContainGivenValues​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet actual, Comparable[] values)  
      private <T extends Comparable<T>>
      void
      assertRangeSetDoesNotEncloseGivenValues​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)  
      private <T extends Comparable<T>>
      void
      assertRangeSetDoesNotIntersectGivenValues​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)  
      private <T extends Comparable<T>>
      void
      assertRangeSetEnclosesAnyOfGivenValues​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)  
      private <T extends Comparable<T>>
      void
      assertRangeSetEnclosesGivenValues​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)  
      private <T extends Comparable<T>>
      void
      assertRangeSetIntersectsAnyOfGivenValues​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)  
      private <T extends Comparable<T>>
      void
      assertRangeSetIntersectsGivenValues​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)  
      <T extends Comparable<T>>
      void
      doesNotEncloseAnyRangesOf​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.RangeSet<T> rangeSet)
      Asserts that the given RangeSet does not enclose all elements of the given range set.
      <T extends Comparable<T>>
      void
      doesNotEncloseAnyRangesOf​(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, Iterable<? extends com.google.common.collect.Range<T>> range)
      Asserts that the given RangeSet does not enclose all elements of the given range.
      private void failIfEmpty​(com.google.common.collect.RangeSet<?> rangeSet)  
      private void failIfEmpty​(Iterable<?> values)  
      private void failIfEmpty​(Object[] values)  
      private void failIfNull​(com.google.common.collect.RangeSet<?> rangeSet)  
      private void failIfNull​(Iterable<?> iterable)  
      private void failIfNull​(Object[] array)  
      private void failIfNullOrEmpty​(com.google.common.collect.RangeSet<?> rangeSet)  
      private void failIfNullOrEmpty​(Iterable<?> values)  
      private void failIfNullOrEmpty​(Object[] values)  
      static RangeSets instance()
      Returns singleton instance of this class.
    • Field Detail

      • INSTANCE

        private static final RangeSets INSTANCE
      • failures

        org.assertj.core.internal.Failures failures
    • Constructor Detail

      • RangeSets

        public RangeSets()
    • Method Detail

      • instance

        public static RangeSets instance()
        Returns singleton instance of this class.
        Returns:
        singleton instance of this class.
      • assertHasSize

        public void assertHasSize​(org.assertj.core.api.AssertionInfo info,
                                  com.google.common.collect.RangeSet<?> actual,
                                  int size)
        Asserts that the actual RangeSet has specific size.
        Parameters:
        info - contains information about the assertion.
        actual - the given RangeSet.
        size - expected size
      • assertContains

        public <T extends Comparable<T>> void assertContains​(org.assertj.core.api.AssertionInfo info,
                                                             com.google.common.collect.RangeSet<T> actual,
                                                             T[] values)
        Asserts that the given RangeSet contains the given values.
        Type Parameters:
        T - the type of rangeset elements
        Parameters:
        info - contains information about the assertion.
        actual - the given RangeSet.
        values - the values that are expected to be in the given RangeSet.
        Throws:
        AssertionError - if the actual RangeSet is null.
        AssertionError - if the actual RangeSet does not contain the given elements.
        IllegalArgumentException - if elements are null or elements are empty while actual is not empty.
      • assertContainsAll

        public <T extends Comparable<T>> void assertContainsAll​(org.assertj.core.api.AssertionInfo info,
                                                                com.google.common.collect.RangeSet<T> actual,
                                                                Iterable<T> values)
        Asserts that the given RangeSet contains all the given values.
        Type Parameters:
        T - the type of rangeset elements
        Parameters:
        info - contains information about the assertion.
        actual - the given RangeSet.
        values - the values that are expected to be in the given RangeSet.
        Throws:
        AssertionError - if the actual RangeSet is null.
        AssertionError - if the actual RangeSet does not contain all the given elements.
        IllegalArgumentException - if elements are null or elements are empty while actual is not empty.
      • assertRangeSetContainsGivenValues

        private void assertRangeSetContainsGivenValues​(org.assertj.core.api.AssertionInfo info,
                                                       com.google.common.collect.RangeSet actual,
                                                       Comparable[] values)
      • assertContainsAnyOf

        public <T extends Comparable<T>> void assertContainsAnyOf​(org.assertj.core.api.AssertionInfo info,
                                                                  com.google.common.collect.RangeSet<T> actual,
                                                                  T[] values)
        Asserts that the given RangeSet contains at least one of the given values.
        Type Parameters:
        T - the type of rangeset elements
        Parameters:
        info - contains information about the assertion.
        actual - the given RangeSet.
        values - the values that are expected to be in the given RangeSet.
        Throws:
        AssertionError - if the actual RangeSet is null.
        AssertionError - if the actual RangeSet does not contain at least one of the given elements.
        IllegalArgumentException - if elements are null or elements are empty while actual is not empty.
      • assertContainsAnyRangesOf

        public <T extends Comparable<T>> void assertContainsAnyRangesOf​(org.assertj.core.api.AssertionInfo info,
                                                                        com.google.common.collect.RangeSet<T> actual,
                                                                        Iterable<? extends T> values)
        Asserts that the given RangeSet contains at least one element of the given values.
        Type Parameters:
        T - the type of rangeset elements
        Parameters:
        info - contains information about the assertion.
        actual - the given RangeSet.
        values - the values that are expected to be in the given RangeSet.
        Throws:
        AssertionError - if the actual RangeSet is null.
        AssertionError - if the actual RangeSet does not contain at least one element of the given values.
        IllegalArgumentException - if elements are null or elements are empty while actual is not empty.
      • assertRangeSetContainsAnyGivenValues

        private void assertRangeSetContainsAnyGivenValues​(org.assertj.core.api.AssertionInfo info,
                                                          com.google.common.collect.RangeSet actual,
                                                          Comparable[] values)
      • assertDoesNotContain

        public <T extends Comparable<T>> void assertDoesNotContain​(org.assertj.core.api.AssertionInfo info,
                                                                   com.google.common.collect.RangeSet<T> actual,
                                                                   T[] values)
        Asserts that the given RangeSet does not contain the given values.
        Type Parameters:
        T - the type of rangeset elements
        Parameters:
        info - contains information about the assertion.
        actual - the given RangeSet.
        values - the values that are expected not to be in the given RangeSet.
        Throws:
        AssertionError - if the actual RangeSet is null.
        AssertionError - if the actual RangeSet contains at least one element of the given values.
        IllegalArgumentException - if elements are null or elements are empty while actual is not empty.
      • assertDoesNotContainAll

        public <T extends Comparable<T>> void assertDoesNotContainAll​(org.assertj.core.api.AssertionInfo info,
                                                                      com.google.common.collect.RangeSet<T> actual,
                                                                      Iterable<? extends T> values)
        Asserts that the given RangeSet does not contain any elements of the given values.
        Type Parameters:
        T - the type of rangeset elements
        Parameters:
        info - contains information about the assertion.
        actual - the given RangeSet.
        values - the values that are expected not to be in the given RangeSet.
        Throws:
        AssertionError - if the actual RangeSet is null.
        AssertionError - if the actual RangeSet contains at least one element of the given values.
        IllegalArgumentException - if values are null or values are empty.
      • assertRangeSetDoesNotContainGivenValues

        private void assertRangeSetDoesNotContainGivenValues​(org.assertj.core.api.AssertionInfo info,
                                                             com.google.common.collect.RangeSet actual,
                                                             Comparable[] values)
      • assertIntersects

        public <T extends Comparable<T>> void assertIntersects​(org.assertj.core.api.AssertionInfo info,
                                                               com.google.common.collect.RangeSet<T> actual,
                                                               com.google.common.collect.Range<T>[] ranges)
        Asserts that the given RangeSet intersects the given ranges.
        Type Parameters:
        T - the type of rangeset elements
        Parameters:
        info - contains information about the assertion.
        actual - the given RangeSet.
        ranges - the ranges that actual RangeSet has to intersect.
        Throws:
        AssertionError - if the actual RangeSet is null.
        AssertionError - if the actual RangeSet does not intersect the given ranges.
        IllegalArgumentException - if ranges are null or ranges are empty while actual is not empty.
      • assertIntersectsAll

        public <T extends Comparable<T>> void assertIntersectsAll​(org.assertj.core.api.AssertionInfo info,
                                                                  com.google.common.collect.RangeSet<T> actual,
                                                                  Iterable<? extends com.google.common.collect.Range<T>> range)
        Asserts that the given RangeSet intersects all the given ranges.
        Type Parameters:
        T - the type of rangeset elements
        Parameters:
        info - contains information about the assertion.
        actual - the given RangeSet.
        range - the ranges that actual RangeSet has to intersect.
        Throws:
        AssertionError - if the actual RangeSet is null.
        AssertionError - if the actual RangeSet does not intersect all the given range.
        IllegalArgumentException - if range is null or range is empty while actual is not empty.
      • assertIntersectsAll

        public <T extends Comparable<T>> void assertIntersectsAll​(org.assertj.core.api.AssertionInfo info,
                                                                  com.google.common.collect.RangeSet<T> actual,
                                                                  com.google.common.collect.RangeSet<T> rangeSet)
        Asserts that the given RangeSet intersects all the given values of range set.
        Type Parameters:
        T - the type of rangeset elements
        Parameters:
        info - contains information about the assertion.
        actual - the given RangeSet.
        rangeSet - the range set that actual RangeSet has to intersect.
        Throws:
        AssertionError - if the actual RangeSet is null.
        AssertionError - if the actual RangeSet does not intersect all the given rangeSet.
        IllegalArgumentException - if range set is null or range set is empty while actual is not empty.
      • assertRangeSetIntersectsGivenValues

        private <T extends Comparable<T>> void assertRangeSetIntersectsGivenValues​(org.assertj.core.api.AssertionInfo info,
                                                                                   com.google.common.collect.RangeSet<T> actual,
                                                                                   com.google.common.collect.Range<T>[] ranges)
      • assertEmpty

        public <T extends Comparable<T>> void assertEmpty​(org.assertj.core.api.AssertionInfo info,
                                                          com.google.common.collect.RangeSet<T> actual)
        Asserts that the given RangeSet is empty.
        Type Parameters:
        T - the type of rangeset elements
        Parameters:
        info - contains information about the assertion.
        actual - the given RangeSet.
        Throws:
        AssertionError - if the actual RangeSet is null.
        AssertionError - if the actual RangeSet is not empty.
      • assertNotEmpty

        public <T extends Comparable<T>> void assertNotEmpty​(org.assertj.core.api.AssertionInfo info,
                                                             com.google.common.collect.RangeSet<T> actual)
        Asserts that the given RangeSet is not empty.
        Type Parameters:
        T - the type of rangeset elements
        Parameters:
        info - contains information about the assertion.
        actual - the given RangeSet.
        Throws:
        AssertionError - if the actual RangeSet is null.
        AssertionError - if the actual RangeSet is empty.
      • assertNullOrEmpty

        public <T extends Comparable<T>> void assertNullOrEmpty​(org.assertj.core.api.AssertionInfo info,
                                                                com.google.common.collect.RangeSet<T> actual)
        Asserts that the given RangeSet is null or empty.
        Type Parameters:
        T - the type of rangeset elements
        Parameters:
        info - contains information about the assertion.
        actual - the given RangeSet.
        Throws:
        AssertionError - if the actual RangeSet is not null or not empty.
      • assertIntersectsAnyOf

        public <T extends Comparable<T>> void assertIntersectsAnyOf​(org.assertj.core.api.AssertionInfo info,
                                                                    com.google.common.collect.RangeSet<T> actual,
                                                                    com.google.common.collect.Range<T>[] ranges)
        Asserts that the given RangeSet intersects at least one of the given ranges.
        Type Parameters:
        T - the type of rangeset elements
        Parameters:
        info - contains information about the assertion.
        actual - the given RangeSet.
        ranges - the ranges that actual RangeSet has to intersect.
        Throws:
        AssertionError - if the actual RangeSet is null.
        AssertionError - if the actual RangeSet does not intersect at least one of the given ranges.
        IllegalArgumentException - if ranges are null or ranges are empty while actual is not empty.
      • assertIntersectsAnyRangesOf

        public <T extends Comparable<T>> void assertIntersectsAnyRangesOf​(org.assertj.core.api.AssertionInfo info,
                                                                          com.google.common.collect.RangeSet<T> actual,
                                                                          Iterable<? extends com.google.common.collect.Range<T>> range)
        Asserts that the given RangeSet intersects at least one element of the given range.
        Type Parameters:
        T - the type of rangeset elements
        Parameters:
        info - contains information about the assertion.
        actual - the given RangeSet.
        range - the range that actual RangeSet has to intersect.
        Throws:
        AssertionError - if the actual RangeSet is null.
        AssertionError - if the actual RangeSet does not intersect at least one element of the given range.
        IllegalArgumentException - if range is null or range is empty while actual is not empty.
      • assertIntersectsAnyRangesOf

        public <T extends Comparable<T>> void assertIntersectsAnyRangesOf​(org.assertj.core.api.AssertionInfo info,
                                                                          com.google.common.collect.RangeSet<T> actual,
                                                                          com.google.common.collect.RangeSet<T> rangeSet)
        Asserts that the given RangeSet intersects at least one element of the given range set.
        Type Parameters:
        T - the type of rangeset elements
        Parameters:
        info - contains information about the assertion.
        actual - the given RangeSet.
        rangeSet - the range set that actual RangeSet has to intersect.
        Throws:
        AssertionError - if the actual RangeSet is null.
        AssertionError - if the actual RangeSet does not intersect at least one element of the given rangeSet.
        IllegalArgumentException - if range set is null or range set is empty while actual is not empty.
      • assertRangeSetIntersectsAnyOfGivenValues

        private <T extends Comparable<T>> void assertRangeSetIntersectsAnyOfGivenValues​(org.assertj.core.api.AssertionInfo info,
                                                                                        com.google.common.collect.RangeSet<T> actual,
                                                                                        com.google.common.collect.Range<T>[] ranges)
      • assertDoesNotIntersect

        public <T extends Comparable<T>> void assertDoesNotIntersect​(org.assertj.core.api.AssertionInfo info,
                                                                     com.google.common.collect.RangeSet<T> actual,
                                                                     com.google.common.collect.Range<T>[] ranges)
        Asserts that the given RangeSet does not intersect the given ranges.
        Type Parameters:
        T - the type of rangeset elements
        Parameters:
        info - contains information about the assertion.
        actual - the given RangeSet.
        ranges - the range that actual RangeSet has to intersect.
        Throws:
        AssertionError - if the actual RangeSet is null.
        AssertionError - if the actual RangeSet intersects at least one element of the given range.
        IllegalArgumentException - if ranges are null or ranges are empty while actual is not empty.
      • assertDoesNotIntersectAnyRangeFrom

        public <T extends Comparable<T>> void assertDoesNotIntersectAnyRangeFrom​(org.assertj.core.api.AssertionInfo info,
                                                                                 com.google.common.collect.RangeSet<T> actual,
                                                                                 Iterable<? extends com.google.common.collect.Range<T>> range)
        Asserts that the given RangeSet does not intersect all elements from the given range.
        Type Parameters:
        T - the type of rangeset elements
        Parameters:
        info - contains information about the assertion.
        actual - the given RangeSet.
        range - the range that actual RangeSet has to intersect.
        Throws:
        AssertionError - if the actual RangeSet is null.
        AssertionError - if the actual RangeSet intersects at least one element of the given range.
        IllegalArgumentException - if range is null or range is empty while actual is not empty.
      • assertDoesNotIntersectAnyRangeFrom

        public <T extends Comparable<T>> void assertDoesNotIntersectAnyRangeFrom​(org.assertj.core.api.AssertionInfo info,
                                                                                 com.google.common.collect.RangeSet<T> actual,
                                                                                 com.google.common.collect.RangeSet<T> rangeSet)
        Asserts that the given RangeSet does not intersect all elements from the given range set.
        Type Parameters:
        T - the type of rangeset elements
        Parameters:
        info - contains information about the assertion.
        actual - the given RangeSet.
        rangeSet - the range set that actual RangeSet has to intersect.
        Throws:
        AssertionError - if the actual RangeSet is null.
        AssertionError - if the actual RangeSet intersects at least one element of the given range.
        IllegalArgumentException - if range set is null or range set is empty while actual is not empty.
      • assertRangeSetDoesNotIntersectGivenValues

        private <T extends Comparable<T>> void assertRangeSetDoesNotIntersectGivenValues​(org.assertj.core.api.AssertionInfo info,
                                                                                         com.google.common.collect.RangeSet<T> actual,
                                                                                         com.google.common.collect.Range<T>[] ranges)
      • assertEncloses

        public <T extends Comparable<T>> void assertEncloses​(org.assertj.core.api.AssertionInfo info,
                                                             com.google.common.collect.RangeSet<T> actual,
                                                             com.google.common.collect.Range<T>[] ranges)
        Asserts that the given RangeSet encloses the given ranges.
        Type Parameters:
        T - the type of rangeset elements
        Parameters:
        info - contains information about the assertion.
        actual - the given RangeSet.
        ranges - the ranges that actual RangeSet has to enclose.
        Throws:
        AssertionError - if the actual RangeSet is null.
        AssertionError - if the actual RangeSet does not enclose the given ranges.
        IllegalArgumentException - if ranges are null or ranges are empty while actual is not empty.
      • assertEnclosesAll

        public <T extends Comparable<T>> void assertEnclosesAll​(org.assertj.core.api.AssertionInfo info,
                                                                com.google.common.collect.RangeSet<T> actual,
                                                                Iterable<? extends com.google.common.collect.Range<T>> range)
        Asserts that the given RangeSet encloses all elements of the given range.
        Type Parameters:
        T - the type of rangeset elements
        Parameters:
        info - contains information about the assertion.
        actual - the given RangeSet.
        range - the range that actual RangeSet has to enclose.
        Throws:
        AssertionError - if the actual RangeSet is null.
        AssertionError - if the actual RangeSet does not enclose elements of the given range.
        IllegalArgumentException - if range is null or range is empty while actual is not empty.
      • assertEnclosesAll

        public <T extends Comparable<T>> void assertEnclosesAll​(org.assertj.core.api.AssertionInfo info,
                                                                com.google.common.collect.RangeSet<T> actual,
                                                                com.google.common.collect.RangeSet<T> rangeSet)
        Asserts that the given RangeSet encloses all elements of the given range set.
        Type Parameters:
        T - the type of rangeset elements
        Parameters:
        info - contains information about the assertion.
        actual - the given RangeSet.
        rangeSet - the range set that actual RangeSet has to enclose.
        Throws:
        AssertionError - if the actual RangeSet is null.
        AssertionError - if the actual RangeSet does not enclose elements of the given range.
        IllegalArgumentException - if range set is null or range set is empty while actual is not empty.
      • assertRangeSetEnclosesGivenValues

        private <T extends Comparable<T>> void assertRangeSetEnclosesGivenValues​(org.assertj.core.api.AssertionInfo info,
                                                                                 com.google.common.collect.RangeSet<T> actual,
                                                                                 com.google.common.collect.Range<T>[] ranges)
      • assertEnclosesAnyOf

        public <T extends Comparable<T>> void assertEnclosesAnyOf​(org.assertj.core.api.AssertionInfo info,
                                                                  com.google.common.collect.RangeSet<T> actual,
                                                                  com.google.common.collect.Range<T>[] ranges)
        Asserts that the given RangeSet encloses the given ranges.
        Type Parameters:
        T - the type of rangeset elements
        Parameters:
        info - contains information about the assertion.
        actual - the given RangeSet.
        ranges - the ranges that actual RangeSet has to enclose.
        Throws:
        AssertionError - if the actual RangeSet is null.
        AssertionError - if the actual RangeSet does not enclose the given ranges.
        IllegalArgumentException - if ranges are null or ranges are empty while actual is not empty.
      • assertEnclosesAnyRangesOf

        public <T extends Comparable<T>> void assertEnclosesAnyRangesOf​(org.assertj.core.api.AssertionInfo info,
                                                                        com.google.common.collect.RangeSet<T> actual,
                                                                        Iterable<? extends com.google.common.collect.Range<T>> range)
        Asserts that the given RangeSet encloses all elements of the given range.
        Type Parameters:
        T - the type of rangeset elements
        Parameters:
        info - contains information about the assertion.
        actual - the given RangeSet.
        range - the range that actual RangeSet has to enclose.
        Throws:
        AssertionError - if the actual RangeSet is null.
        AssertionError - if the actual RangeSet does not enclose all elements of the given range.
        IllegalArgumentException - if range is null or range is empty while actual is not empty.
      • assertEnclosesAnyRangesOf

        public <T extends Comparable<T>> void assertEnclosesAnyRangesOf​(org.assertj.core.api.AssertionInfo info,
                                                                        com.google.common.collect.RangeSet<T> actual,
                                                                        com.google.common.collect.RangeSet<T> rangeSet)
        Asserts that the given RangeSet encloses all elements of the given range set.
        Type Parameters:
        T - the type of rangeset elements
        Parameters:
        info - contains information about the assertion.
        actual - the given RangeSet.
        rangeSet - the range set that actual RangeSet has to enclose.
        Throws:
        AssertionError - if the actual RangeSet is null.
        AssertionError - if the actual RangeSet does not enclose all elements of the given rangeSet.
        IllegalArgumentException - if range set is null or range set is empty while actual is not empty.
      • assertRangeSetEnclosesAnyOfGivenValues

        private <T extends Comparable<T>> void assertRangeSetEnclosesAnyOfGivenValues​(org.assertj.core.api.AssertionInfo info,
                                                                                      com.google.common.collect.RangeSet<T> actual,
                                                                                      com.google.common.collect.Range<T>[] ranges)
      • assertDoesNotEnclose

        public <T extends Comparable<T>> void assertDoesNotEnclose​(org.assertj.core.api.AssertionInfo info,
                                                                   com.google.common.collect.RangeSet<T> actual,
                                                                   com.google.common.collect.Range<T>[] ranges)
        Asserts that the given RangeSet does not enclose the given ranges.
        Type Parameters:
        T - the type of rangeset elements
        Parameters:
        info - contains information about the assertion.
        actual - the given RangeSet.
        ranges - the ranges that actual RangeSet has not to enclose.
        Throws:
        AssertionError - if the actual RangeSet is null.
        AssertionError - if the actual RangeSet encloses the given ranges.
        IllegalArgumentException - if ranges are null or ranges are empty while actual is not empty.
      • doesNotEncloseAnyRangesOf

        public <T extends Comparable<T>> void doesNotEncloseAnyRangesOf​(org.assertj.core.api.AssertionInfo info,
                                                                        com.google.common.collect.RangeSet<T> actual,
                                                                        Iterable<? extends com.google.common.collect.Range<T>> range)
        Asserts that the given RangeSet does not enclose all elements of the given range.
        Type Parameters:
        T - the type of rangeset elements
        Parameters:
        info - contains information about the assertion.
        actual - the given RangeSet.
        range - the ranges that actual RangeSet has not to enclose.
        Throws:
        AssertionError - if the actual RangeSet is null.
        AssertionError - if the actual RangeSet encloses all elements of the given range.
        IllegalArgumentException - if range is null or range is empty while actual is not empty.
      • doesNotEncloseAnyRangesOf

        public <T extends Comparable<T>> void doesNotEncloseAnyRangesOf​(org.assertj.core.api.AssertionInfo info,
                                                                        com.google.common.collect.RangeSet<T> actual,
                                                                        com.google.common.collect.RangeSet<T> rangeSet)
        Asserts that the given RangeSet does not enclose all elements of the given range set.
        Type Parameters:
        T - the type of rangeset elements
        Parameters:
        info - contains information about the assertion.
        actual - the given RangeSet.
        rangeSet - the range set that actual RangeSet has not to enclose.
        Throws:
        AssertionError - if the actual RangeSet is null.
        AssertionError - if the actual RangeSet encloses all elements of the given range.
        IllegalArgumentException - if range set is null or range set is empty while actual is not empty.
      • assertRangeSetDoesNotEncloseGivenValues

        private <T extends Comparable<T>> void assertRangeSetDoesNotEncloseGivenValues​(org.assertj.core.api.AssertionInfo info,
                                                                                       com.google.common.collect.RangeSet<T> actual,
                                                                                       com.google.common.collect.Range<T>[] ranges)
      • assertNotNull

        private void assertNotNull​(org.assertj.core.api.AssertionInfo info,
                                   com.google.common.collect.RangeSet<?> actual)
      • failIfNull

        private void failIfNull​(Object[] array)
      • failIfNull

        private void failIfNull​(Iterable<?> iterable)
      • failIfNull

        private void failIfNull​(com.google.common.collect.RangeSet<?> rangeSet)
      • failIfEmpty

        private void failIfEmpty​(Object[] values)
      • failIfEmpty

        private void failIfEmpty​(Iterable<?> values)
      • failIfEmpty

        private void failIfEmpty​(com.google.common.collect.RangeSet<?> rangeSet)
      • failIfNullOrEmpty

        private void failIfNullOrEmpty​(Object[] values)
      • failIfNullOrEmpty

        private void failIfNullOrEmpty​(Iterable<?> values)
      • failIfNullOrEmpty

        private void failIfNullOrEmpty​(com.google.common.collect.RangeSet<?> rangeSet)