public interface Size
| Modifier and Type | Method and Description |
|---|---|
static Size |
empty()
Returns an empty
Size with zero width and height. |
default int |
height()
Returns the vertical dimension.
|
default boolean |
isEmpty()
Returns
true if this size is empty. |
static Size |
of(int width,
int height)
Returns the
Size instance for the given width and height values. |
default int |
width()
Returns the horizontal dimension.
|
static Size empty()
Size with zero width and height.static Size of(int width, int height)
Size instance for the given width and height values.java.lang.IllegalArgumentException - when width or height is negativedefault int width()
default int height()
default boolean isEmpty()
true if this size is empty.