Package com.helger.commons.dimension
Interface IHasDimensionInt
-
- All Superinterfaces:
IHasHeightInt,IHasWidthInt
- All Known Implementing Classes:
SizeInt
public interface IHasDimensionInt extends IHasWidthInt, IHasHeightInt
Interface for objects having a width and a height.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default booleanisLandscape()default booleanisPortrait()default booleanisQuadratic()-
Methods inherited from interface com.helger.commons.dimension.IHasHeightInt
getHeight
-
Methods inherited from interface com.helger.commons.dimension.IHasWidthInt
getWidth
-
-
-
-
Method Detail
-
isLandscape
default boolean isLandscape()
- Returns:
trueif width > height,falseotherwise.- Since:
- 9.2.1
-
isPortrait
default boolean isPortrait()
- Returns:
trueif height > width,falseotherwise.- Since:
- 9.2.1
-
isQuadratic
default boolean isQuadratic()
- Returns:
trueif width equals height,falseotherwise.- Since:
- 9.2.1
-
-