Class Dimension

java.lang.Object
ro.sync.exml.view.graphics.Dimension

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

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

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

    Modifier and Type
    Method
    Description
    boolean
    Checks whether two dimension objects have equal values.
    int
     
    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 Details

    • width

      public int width
      The width.
    • height

      public int height
      The height.
  • Constructor Details

    • Dimension

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

    • toString

      public 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 Object
      Returns:
      a string representation of this Dimension object
    • equals

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

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