Class Dimension


  • @API(type=EXTENDABLE,
         src=PRIVATE)
    public class Dimension
    extends java.lang.Object
    Dimension.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int height
      The height.
      int width
      The width.
    • Constructor Summary

      Constructors 
      Constructor Description
      Dimension​(int width, int height)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Checks whether two dimension objects have equal values.
      int hashCode()  
      java.lang.String toString()
      Returns a string representation of the values of this Dimension object's height and width fields.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • width

        public int width
        The width.
      • height

        public int height
        The height.
    • Constructor Detail

      • Dimension

        public Dimension​(int width,
                         int height)
        Constructor.
        Parameters:
        width - The width.
        height - The height.
    • Method Detail

      • toString

        public java.lang.String toString()
        Returns a string representation of the values of this Dimension object's height and width fields. This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations. The returned string may be empty but may not be null.
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string representation of this Dimension object
      • equals

        public boolean equals​(java.lang.Object obj)
        Checks whether two dimension objects have equal values.
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)
      • hashCode

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