Schnittstelle IAbsoluteOrRelativeInt
- Alle Superschnittstellen:
IElement
- Alle bekannten Implementierungsklassen:
AbsoluteOrRelativeInt
A
IAbsoluteOrRelativeInt stores either an integer or a percentage.- Version:
- 2022-10-15
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungintdoubleintgetValueRelativeToHundredPercentValue(int hundredPercentValue) booleanbooleanbooleanVon Schnittstelle geerbte Methoden ch.nolix.systemapi.elementapi.baseapi.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.
-
isPositive
boolean isPositive()- Gibt zurück:
- true if the current
IAbsoluteOrRelativeIntis positive.
-
isRelative
boolean isRelative()- Gibt zurück:
- true if the current
IAbsoluteOrRelativeIntis relative.
-