Class OptionalShouldBeAbsent

  • All Implemented Interfaces:
    ErrorMessageFactory

    public final class OptionalShouldBeAbsent
    extends BasicErrorMessageFactory
    Creates an error message indicating that an Optional which should be absent is actually present
    • Constructor Detail

      • OptionalShouldBeAbsent

        private OptionalShouldBeAbsent​(java.lang.String format,
                                       java.lang.Object... arguments)
    • Method Detail

      • shouldBeAbsent

        public static <T> ErrorMessageFactory shouldBeAbsent​(com.google.common.base.Optional<T> actual)