com.aspose.slides.android

Class Size

  • java.lang.Object
    • com.aspose.slides.android.Size


  • public class Size
    extends java.lang.Object
    Class for describing width and height dimensions in some arbitrary unit.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Size(int width, int height)
      Create a new Size instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object obj)
      Check if this size is equal to another size.
      int getHeight()
      Get the height of the size.
      int getWidth()
      Get the width of the size.
      int hashCode()
      java.lang.String toString()
      Return the size represented as a string with the format "WxH"
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Size

        public Size(int width,
                    int height)
        Create a new Size instance.
        Parameters:
        width - The width of the size
        height - The height of the size
    • Method Detail

      • getWidth

        public int getWidth()
        Get the width of the size.
        Returns:
        width
      • getHeight

        public int getHeight()
        Get the height of the size.
        Returns:
        height
      • equals

        public boolean equals(java.lang.Object obj)
        Check if this size is equal to another size.

        Two sizes are equal if and only if both their widths and heights are equal.

        A size object is never equal to any other type of object.

        Overrides:
        equals in class java.lang.Object
        Returns:
        true if the objects were equal, false otherwise
      • hashCode

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

        public java.lang.String toString()
        Return the size represented as a string with the format "WxH"
        Overrides:
        toString in class java.lang.Object
        Returns:
        string representation of the size