Class OptionalShouldContainInstanceOf

    • Constructor Detail

      • OptionalShouldContainInstanceOf

        private OptionalShouldContainInstanceOf​(java.lang.String message)
    • Method Detail

      • shouldContainInstanceOf

        public static OptionalShouldContainInstanceOf shouldContainInstanceOf​(java.lang.Object value,
                                                                              java.lang.Class<?> clazz)
        Indicates that a value should be present in an empty Optional.
        Parameters:
        value - Optional to be checked.
        clazz - the class to check the optional value against
        Returns:
        an error message factory.
        Throws:
        java.lang.NullPointerException - if optional is null.