Package nl.vpro.domain.image
Class Dimension
- java.lang.Object
-
- nl.vpro.domain.image.Dimension
-
- All Implemented Interfaces:
Serializable
public class Dimension extends Object implements Serializable
- Since:
- 3.64
- Author:
- Michiel Meeuwissen
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(@Nullable Object other)booleanequals(@Nullable Object o)protected longgcd(long a, long b)LonggetHeight()LonggetWidth()inthashCode()static Dimensionof(@Positive Integer width, @Positive Integer height)static Dimensionof(@Positive Long width, @Positive Long height)Dimensionreduce()Returns the smallest possible dimension with the same aspect ratio.StringtoString()
-
-
-
Method Detail
-
of
public static Dimension of(@Positive @Positive Integer width, @Positive @Positive Integer height)
-
reduce
public Dimension reduce()
Returns the smallest possible dimension with the same aspect ratio.
-
gcd
protected long gcd(long a, long b)
-
getWidth
public Long getWidth()
-
getHeight
public Long getHeight()
-
canEqual
protected boolean canEqual(@Nullable Object other)
-
-