Package com.facilita.fc.eggPlant
Class Size
- java.lang.Object
-
- com.facilita.fc.eggPlant.Size
-
public class Size extends java.lang.ObjectRepresents the size (width and height) of an area of the screen.
-
-
Constructor Summary
Constructors Constructor Description Size(int width, int height)Instantiates a new size.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)inthashCode()intheight()Height.java.lang.StringtoString()intwidth()Width.
-
-
-
Method Detail
-
width
public int width()
Width.- Returns:
- the width
-
height
public int height()
Height.- Returns:
- the height
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-