Package com.helger.commons.dimension
Interface IHasDimensionLong
-
- All Superinterfaces:
IHasHeightLong,IHasWidthLong
- All Known Implementing Classes:
SizeLong
public interface IHasDimensionLong extends IHasWidthLong, IHasHeightLong
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.IHasHeightLong
getHeight
-
Methods inherited from interface com.helger.commons.dimension.IHasWidthLong
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
-
-