Class OptionalShouldBeEmpty

    • Constructor Detail

      • OptionalShouldBeEmpty

        private OptionalShouldBeEmpty​(java.lang.Class<?> optionalClass,
                                      java.lang.Object optionalValue)
    • Method Detail

      • shouldBeEmpty

        public static <VALUE> OptionalShouldBeEmpty shouldBeEmpty​(java.util.Optional<VALUE> optional)
        Indicates that the provided Optional should be empty.
        Type Parameters:
        VALUE - the type of the value contained in the Optional.
        Parameters:
        optional - the actual Optional to test.
        Returns:
        a error message factory.
      • shouldBeEmpty

        public static OptionalShouldBeEmpty shouldBeEmpty​(java.util.OptionalDouble optional)
        Indicates that the provided OptionalDouble should be empty.
        Parameters:
        optional - the actual OptionalDouble to test.
        Returns:
        a error message factory.
      • shouldBeEmpty

        public static OptionalShouldBeEmpty shouldBeEmpty​(java.util.OptionalInt optional)
        Indicates that the provided OptionalInt should be empty.
        Parameters:
        optional - the actual OptionalInt to test.
        Returns:
        a error message factory.
      • shouldBeEmpty

        public static OptionalShouldBeEmpty shouldBeEmpty​(java.util.OptionalLong optional)
        Indicates that the provided OptionalLong should be empty.
        Parameters:
        optional - the actual OptionalLong to test.
        Returns:
        a error message factory.