Package de.xima.fc.prompt.mgmt.defaults
Class DefaultTestPromptConnectionRetVal
- java.lang.Object
-
- de.xima.fc.prompt.mgmt.defaults.DefaultTestPromptConnectionRetVal
-
public final class DefaultTestPromptConnectionRetVal extends Object
Default implementation ofITestPromptConnectionRetValwith a builder.- Since:
- 8.5.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultTestPromptConnectionRetVal.Builder
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DefaultTestPromptConnectionRetVal.Builderbuilder()Creates a new builder for test prompt connection return values.static ITestPromptConnectionRetValofFailure(String... errors)Creates a new instance ofITestPromptConnectionRetValfor a failed connection test.static ITestPromptConnectionRetValofFailure(List<String> errors)Creates a new instance ofITestPromptConnectionRetValfor a failed connection test.static ITestPromptConnectionRetValofSuccess(String... messages)Creates a new instance ofITestPromptConnectionRetValfor a successful connection test.static ITestPromptConnectionRetValofSuccess(List<String> messages)Creates a new instance ofITestPromptConnectionRetValfor a successful connection test.static DefaultTestPromptConnectionRetVal.BuildertestPromptConnectionRetValBuilder()Creates a new builder for test prompt connection return values.
-
-
-
Method Detail
-
builder
public static DefaultTestPromptConnectionRetVal.Builder builder()
Creates a new builder for test prompt connection return values.- Returns:
- A new builder.
-
ofFailure
public static ITestPromptConnectionRetVal ofFailure(String... errors)
Creates a new instance ofITestPromptConnectionRetValfor a failed connection test.- Parameters:
errors- An optional list of error messages that describe the failure.- Returns:
- A new POJO instance indicating a failed connection test.
-
ofFailure
public static ITestPromptConnectionRetVal ofFailure(List<String> errors)
Creates a new instance ofITestPromptConnectionRetValfor a failed connection test.- Parameters:
errors- An optional list of error messages that describe the failure.- Returns:
- A new POJO instance indicating a failed connection test.
-
ofSuccess
public static ITestPromptConnectionRetVal ofSuccess(String... messages)
Creates a new instance ofITestPromptConnectionRetValfor a successful connection test.- Parameters:
messages- An optional list of informational messages describing the test outcome.- Returns:
- A new POJO instance indicating a successful connection test.
-
ofSuccess
public static ITestPromptConnectionRetVal ofSuccess(List<String> messages)
Creates a new instance ofITestPromptConnectionRetValfor a successful connection test.- Parameters:
messages- An optional list of informational messages describing the test outcome.- Returns:
- A new POJO instance indicating a successful connection test.
-
testPromptConnectionRetValBuilder
public static DefaultTestPromptConnectionRetVal.Builder testPromptConnectionRetValBuilder()
Creates a new builder for test prompt connection return values.- Returns:
- A new builder.
-
-