Class Size


  • public class Size
    extends java.lang.Object
    Size
    Since:
    1.0.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int height
      Height
      int width
      Width
      static Size ZERO
      Size with width and height of 0.
    • Constructor Summary

      Constructors 
      Constructor Description
      Size​(int width, int height)
      Constructor
    • 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.
    • Constructor Detail

      • Size

        public Size​(int width,
                    int height)
        Constructor
        Parameters:
        width - Width
        height - Height
        Since:
        1.0.0
    • Method Detail

      • getAspectRatio

        public float getAspectRatio()
      • isLandscape

        public boolean isLandscape()
      • isPortrait

        public boolean isPortrait()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object