Package 

Class Size

  • All Implemented Interfaces:
    java.lang.Comparable

    
    public class Size
     implements Comparable<Size>
                        

    A simple class representing a size, with width and height values.

    • Constructor Summary

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

      Modifier and Type Method Description
      int getWidth()
      int getHeight()
      Size flip() Returns a flipped size, with height equal to this size's widthand width equal to this size's height.
      boolean equals(Object o)
      String toString()
      int hashCode()
      int compareTo(@NonNull() Size another)
      • Methods inherited from class java.lang.Comparable

        compareTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait