Klasse ArgumentMediator<A>
java.lang.Object
ch.nolix.core.errorcontrol.validator.ArgumentMediator<A>
- Typparameter:
A
- is the type of the argument of anArgumentMediator
.
- Bekannte direkte Unterklassen:
BigDecimalMediator
,ContainerMediator
,ExtendedArgumentMediator
,MethodMediator
,StringMediator
,TimeMediator
,TypeMediator
A
ArgumentMediator
is not mutable.- Version:
- 2017-01-01
- Autor:
- Silvan Wyss
-
Feldübersicht
-
Konstruktorübersicht
ModifiziererKonstruktorBeschreibungArgumentMediator
(A argument) Creates a newArgumentMediator
for the given argument.protected
ArgumentMediator
(String argumentName, A argument) Creates a newArgumentMediator
for the given argument, that has the given argument name. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal void
protected final String
protected A
final void
hasSameStringRepresentationAs
(Object object) final void
hasStringRepresentation
(String stringRepresentation) final void
final void
final void
final void
isNotEqualTo
(A object) final void
final void
isNull()
final void
-
Felddetails
-
DEFAULT_ARGUMENT_NAME
- Siehe auch:
-
-
Konstruktordetails
-
ArgumentMediator
Creates a newArgumentMediator
for the given argument.- Parameter:
argument
-
-
ArgumentMediator
Creates a newArgumentMediator
for the given argument, that has the given argument name.- Parameter:
argumentName
-argument
-- Löst aus:
ArgumentIsNullException
- if the given argumentName is null.InvalidArgumentException
- if the given argument name is blank.
-
-
Methodendetails
-
fulfills
- Parameter:
condition
-- Löst aus:
ArgumentIsNullException
- if the given condition is null.InvalidArgumentException
- if the argument of the currentArgumentMediator
does not fulfill the given condition.
-
hasSameStringRepresentationAs
- Parameter:
object
-- Löst aus:
ArgumentIsNullException
- if the given object is null.InvalidArgumentException
- if the argument of the currentArgumentMediator
does not have the sameString
representation as the given object.
-
hasStringRepresentation
- Parameter:
stringRepresentation
-- Löst aus:
InvalidArgumentException
- if the argument of the currentArgumentMediator
does not have the given stringRepresentation.
-
isEqualTo
- Parameter:
object
-- Löst aus:
InvalidArgumentException
- if the argument of the currentArgumentMediator
does not equal the given object.
-
is
- Parameter:
object
-- Löst aus:
InvalidArgumentException
- if the argument of the currentArgumentMediator
is not (!) the given object.
-
isNot
- Parameter:
object
-- Löst aus:
InvalidArgumentException
- if the argument of the currentArgumentMediator
is the given object.
-
isNotEqualTo
- Parameter:
object
-- Löst aus:
InvalidArgumentException
- if the argument of the currentArgumentMediator
equals the given object.
-
isNotNull
public final void isNotNull()- Löst aus:
ArgumentIsNullException
- if the argument of the currentArgumentMediator
is null.
-
isNull
public final void isNull()- Löst aus:
ArgumentIsNotNullException
- if the argument of the currentArgumentMediator
is not (!) null.
-
isOfType
- Parameter:
type
-- Löst aus:
ArgumentIsNullException
- if the argument of the currentArgumentMediator
is null.InvalidArgumentException
- if the argument of the currentArgumentMediator
is not of the given type.
-
getStoredArgument
- Gibt zurück:
- the argument of the current
ArgumentMediator
.
-
getArgumentName
- Gibt zurück:
- the argument name of the current
Mediator
.
-