Class Dimensions

java.lang.Object
com.dropbox.core.v2.files.Dimensions

public class Dimensions extends Object
Dimensions for a photo or video.
  • Field Details

    • height

      protected final long height
    • width

      protected final long width
  • Constructor Details

    • Dimensions

      public Dimensions(long height, long width)
      Dimensions for a photo or video.
      Parameters:
      height - Height of the photo/video.
      width - Width of the photo/video.
  • Method Details

    • getHeight

      public long getHeight()
      Height of the photo/video.
      Returns:
      value for this field.
    • getWidth

      public long getWidth()
      Width of the photo/video.
      Returns:
      value for this field.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringMultiline

      public String toStringMultiline()
      Returns a String representation of this object formatted for easier readability.

      The returned String may contain newlines.

      Returns:
      Formatted, multiline String representation of this object