java.lang.Object | |
↳ | com.atlassian.jira.util.dbc.Assertions |
Clients of @PublicApi
can expect
that programs compiled against a given version will remain binary compatible with later versions of the
@PublicApi
as per each product's API policy as long as the client does not implement/extend
@PublicApi
interfaces or classes (refer to each product's API policy for the exact
guarantee---usually binary compatibility is guaranteed at least across minor versions).
@PublicApi
interfaces and classes are not designed to be implemented or extended by clients,
we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not
affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces
annotated with @PublicSpi
are safe to extend/implement).
Utility class with design by contract checks. Should be preferred to com.atlassian.jira.util.dbcNull
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Throw and IllegalArgumentException if the passed collection is null or contains any blank
Strings.
| |||||||||||
Throw an IllegalArgumentException if the passed collection is null or contains any null values.
| |||||||||||
Throw an IllegalArgumentException if the passed array is null or contains any null values.
| |||||||||||
Throw an IllegalArgumentException if the condition is false
| |||||||||||
Throw an IllegalArgumentException if the condition is true
| |||||||||||
Throw an IllegalArgumentException if the string is null or blank (only contains whitespace)
| |||||||||||
Throw an IllegalArgumentException if the argument is null or empty
| |||||||||||
Throw an IllegalArgumentException if the string is null
| |||||||||||
State check.
| |||||||||||
State check.
| |||||||||||
State check.
| |||||||||||
Either returns a string with all space trimmed or throws an IllegalArgumentException if the string is
null or blank (only contains whitespace).
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Throw and IllegalArgumentException if the passed collection is null or contains any blank Strings.
name | name added to the exception |
---|---|
stringsNotBlank | the collection of strings that should not be blank. |
IllegalArgumentException | if the passed collection is null or contains any blank strings. |
---|
Throw an IllegalArgumentException if the passed collection is null or contains any null values.
name | name added to the exception. |
---|---|
containsNoNulls | the collection to check. |
IllegalArgumentException | if the passed collection is null or contains any null. |
---|
Throw an IllegalArgumentException if the passed array is null or contains any null values.
name | name added to the exception. |
---|---|
containsNoNulls | the collection to check. |
IllegalArgumentException | if the passed collection is null or contains any null. |
---|
Throw an IllegalArgumentException if the condition is false
name | added to the exception |
---|---|
condition | should be false |
IllegalArgumentException | if true |
---|
Throw an IllegalArgumentException if the condition is true
name | added to the exception |
---|---|
condition | should be false |
IllegalArgumentException | if true |
---|
Throw an IllegalArgumentException if the string is null or blank (only contains whitespace)
name | added to the exception |
---|---|
string | should not be null or blank |
IllegalArgumentException | if null or blank |
---|
Throw an IllegalArgumentException if the argument is null or empty
name | added to the exception |
---|---|
notEmpty | should not be null or empty |
IllegalArgumentException | if null or empty |
---|
Throw an IllegalArgumentException if the string is null
name | added to the exception |
---|---|
notNull | should not be null |
IllegalArgumentException | if null |
---|
State check. Throw an IllegalStateException if the condition is true
name | added to the exception |
---|---|
condition | should be true |
IllegalStateException | if false |
---|
State check. Throw an IllegalStateException if the supplied argument is null.
name | added to the exception |
---|---|
notNull | should not be null |
IllegalStateException | if false |
---|
State check. Throw an IllegalStateException if the condition is false
name | added to the exception |
---|---|
condition | should be true |
IllegalStateException | if false |
---|
Either returns a string with all space trimmed or throws an IllegalArgumentException if the string is null or blank (only contains whitespace).
name | added to the exception |
---|---|
string | should not be null or blank |
IllegalArgumentException | if null or blank |
---|