Interface QuickPointCountPattern

All Superinterfaces:
Pattern
All Known Subinterfaces:
DirectPointSetPattern, DirectPointSetUniformGridPattern, RectangularPattern
All Known Implementing Classes:
SimplePattern

public interface QuickPointCountPattern extends Pattern
Author:
Daniel Alievsky
See Also:
  • Method Details

    • isPointCountVeryLarge

      boolean isPointCountVeryLarge()
      Returns true if and only if the number of points in this pattern is greater than Long.MAX_VALUE. In this case, Pattern.pointCount() returns Long.MAX_VALUE, but you can get the approximate number of points by Pattern.largePointCount() method.

      There is a guarantee that this method works very quickly (O(1) operations). This method never throws any exceptions.

      Returns:
      true if the number of points in this pattern is greater than Long.MAX_VALUE.