@Test public void canCheckInvalidAspectRatio() { Rational invalidAspectRatio = new Rational(-1, 2); assertThat(ImageUtil.isAspectRatioValid(invalidAspectRatio)).isFalse(); }
public static boolean isAspectRatioValid(Rational aspectRatio) { return aspectRatio != null && aspectRatio.floatValue() > 0 && !aspectRatio.isNaN(); }
ImageUtil { public static boolean isAspectRatioValid(Rational aspectRatio) { return aspectRatio != null && aspectRatio.floatValue() > 0 && !aspectRatio.isNaN(); } }
ImageUtil { public static boolean isAspectRatioValid(Rational aspectRatio) { return aspectRatio != null && aspectRatio.floatValue() > 0 && !aspectRatio.isNaN(); } private  ImageUtil(); }
ImageUtil { public static boolean isAspectRatioValid(Rational aspectRatio) { return aspectRatio != null && aspectRatio.floatValue() > 0 && !aspectRatio.isNaN(); } private  ImageUtil(); static byte[] imageToJpegByteArray(ImageProxy image); static byte[] cropByteArray(byte[] data, Rect cropRect); static boolean isAspectRatioValid(Rational aspectRatio); static boolean isAspectRatioValid(Size sourceSize, Rational aspectRatio); static Rect computeCropRectFromAspectRatio(Size sourceSize, Rational aspectRatio); static Rational rotate(
            Rational rational, @RotationValue int rotation); }
ImageUtil { public static boolean isAspectRatioValid(Rational aspectRatio) { return aspectRatio != null && aspectRatio.floatValue() > 0 && !aspectRatio.isNaN(); } private  ImageUtil(); static byte[] imageToJpegByteArray(ImageProxy image); static byte[] cropByteArray(byte[] data, Rect cropRect); static boolean isAspectRatioValid(Rational aspectRatio); static boolean isAspectRatioValid(Size sourceSize, Rational aspectRatio); static Rect computeCropRectFromAspectRatio(Size sourceSize, Rational aspectRatio); static Rational rotate(
            Rational rational, @RotationValue int rotation);  }