Class RedisAssertions
java.lang.Object
org.springframework.data.redis.util.RedisAssertions
Deprecated, for removal: This API element is subject to removal in a future version.
Abstract utility class for common assertions used in Spring Data Redis.
- Since:
- 3.1.0
- Author:
- John Blum
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfaceDeprecated, for removal: This API element is subject to removal in a future version.
- 
Constructor SummaryConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T> TrequireNonNull(T target, String message, Object... arguments) Deprecated, for removal: This API element is subject to removal in a future version.Asserts the givenObjectis not null.static <T> TrequireNonNull(T target, Supplier<String> message) Deprecated, for removal: This API element is subject to removal in a future version.Asserts the givenObjectis not null.static <T> TrequireNonNull(T target, RedisAssertions.RuntimeExceptionSupplier cause) Deprecated, for removal: This API element is subject to removal in a future version.static <T> TrequireState(T target, String message, Object... arguments) Deprecated, for removal: This API element is subject to removal in a future version.Asserts the givenObjectis not null.static <T> TrequireState(T target, Supplier<String> message) Deprecated, for removal: This API element is subject to removal in a future version.Asserts the givenObjectis not null.
- 
Constructor Details- 
RedisAssertionspublic RedisAssertions()Deprecated, for removal: This API element is subject to removal in a future version.
 
- 
- 
Method Details- 
requireNonNullDeprecated, for removal: This API element is subject to removal in a future version.Asserts the givenObjectis not null.- Type Parameters:
- T-- typeof- Objectbeing asserted.
- Parameters:
- target-- Objectto evaluate.
- message-- Stringcontaining the message for the thrown exception.
- arguments- array of- Objectarguments used to format the- message.
- Returns:
- the given Object.
- Throws:
- IllegalArgumentException- if the- targetis null.
- See Also:
 
- 
requireNonNullDeprecated, for removal: This API element is subject to removal in a future version.Asserts the givenObjectis not null.
- 
requireNonNullpublic static <T> T requireNonNull(@Nullable T target, RedisAssertions.RuntimeExceptionSupplier cause) Deprecated, for removal: This API element is subject to removal in a future version.
- 
requireStateDeprecated, for removal: This API element is subject to removal in a future version.Asserts the givenObjectis not null.- Type Parameters:
- T-- typeof- Objectbeing asserted.
- Parameters:
- target-- Objectto evaluate.
- message-- Stringcontaining the message for the thrown exception.
- arguments- array of- Objectarguments used to format the- message.
- Returns:
- the given Object.
- Throws:
- IllegalArgumentException- if the- targetis null.
- See Also:
 
- 
requireStateDeprecated, for removal: This API element is subject to removal in a future version.Asserts the givenObjectis not null.
 
- 
Assertutility.