Class Utils.AspectRatioComparator

  • All Implemented Interfaces:
    java.util.Comparator

    
    public final class Utils.AspectRatioComparator
     implements Comparator<Camera.Size>
                        

    Compares Camera.Size according to aspect ratio it represents regards to matching to some perfect desired target aspect ratio.

    For example: Collections.min(sizes, AspectRatioComparator(targetAspect)) will return the size whose aspect ratio is closest to target.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Integer compare(Camera.Size lhs, Camera.Size rhs)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait