This interface is implemented by classes which calculate the size of an object inside of an enclosing object. @author coobird @since 0.3.4
| 35 | * |
| 36 | */ |
| 37 | public interface Size { |
| 38 | /** |
| 39 | * Calculates the size of the object. |
| 40 | * |
| 41 | * @param width Width of the object which encloses the object |
| 42 | * for which the size should be determined. |
| 43 | * @param height Height of the object which encloses the object |
| 44 | * for which the size should be determined. |
| 45 | * @return Calculated size of the object. |
| 46 | * @throws IllegalArgumentException If the width and/or height is less than |
| 47 | * or equal to {@code 0}. |
| 48 | */ |
| 49 | public Dimension calculate(int width, int height); |
| 50 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…