Package com.appliedrec.verid.core2
Class Size
- java.lang.Object
-
- com.appliedrec.verid.core2.Size
-
public class Size extends java.lang.ObjectSize- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description Size(int width, int height)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)floatgetAspectRatio()inthashCode()booleanisLandscape()booleanisPortrait()
-
-
-
Field Detail
-
width
public int width
Width- Since:
- 1.0.0
-
height
public int height
Height- Since:
- 1.0.0
-
ZERO
public static final Size ZERO
Size with width and height of 0.
-
-
Method Detail
-
getAspectRatio
public float getAspectRatio()
-
isLandscape
public boolean isLandscape()
-
isPortrait
public boolean isPortrait()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-