Schnittstelle IAbsoluteOrRelativeInt
- Alle Superschnittstellen:
IElement
- Alle bekannten Implementierungsklassen:
AbsoluteOrRelativeInt
A
IAbsoluteOrRelativeInt stores either an integer or a percentage.- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifikator und TypMethodeBeschreibungintdoubleintgetValueRelativeToHundredPercentValue(int hundredPercentValue) booleanbooleanbooleanVon Schnittstelle geerbte Methoden IElement
getAttributes, getSpecification, toFormatedString, toXml
-
Methodendetails
-
getAbsoluteValue
int getAbsoluteValue()- Gibt zurück:
- the absolute value of the current
IAbsoluteOrRelativeInt. - Löst aus:
RuntimeException- if the currentIAbsoluteOrRelativeIntis not absolute.
-
getPercentage
double getPercentage()- Gibt zurück:
- the percentage of the current
IAbsoluteOrRelativeInt. - Löst aus:
RuntimeException- if the currentIAbsoluteOrRelativeIntis not relative.
-
getValueRelativeToHundredPercentValue
int getValueRelativeToHundredPercentValue(int hundredPercentValue) - Parameter:
hundredPercentValue-- Gibt zurück:
- the value of the current
IAbsoluteOrRelativeIntrelative to the given hundredPercentValue.
-
isAbsolute
boolean isAbsolute()- Gibt zurück:
- true if the current
IAbsoluteOrRelativeIntis absolute, false otherwise.
-
isPositive
boolean isPositive()- Gibt zurück:
- true if the current
IAbsoluteOrRelativeIntis positive, false otherwise.
-
isRelative
boolean isRelative()- Gibt zurück:
- true if the current
IAbsoluteOrRelativeIntis relative, false otherwise.
-