[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003eNumericThreshold\u003c/code\u003e class in the Google API Client Library for Java, specifically within the \u003ccode\u003ecom.google.api.gax.batching\u003c/code\u003e package.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eNumericThreshold\u003c/code\u003e is designed to count elements based on an \u003ccode\u003eElementCounter\u003c/code\u003e and determines when a numeric threshold has been reached, implementing the \u003ccode\u003eBatchingThreshold\u003c/code\u003e interface.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version documented on this page is 2.63.1, but it includes a list of previous versions going back to version 2.7.1, showing a variety of builds.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides methods to accumulate elements (\u003ccode\u003eaccumulate(E e)\u003c/code\u003e), create a copy with a zeroed accumulated value (\u003ccode\u003ecopyWithZeroedValue()\u003c/code\u003e), and check if the threshold has been reached (\u003ccode\u003eisThresholdReached()\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe constructor \u003ccode\u003eNumericThreshold(long threshold, ElementCounter<E> extractor)\u003c/code\u003e allows for setting the numeric threshold value and defines how elements are counted.\u003c/p\u003e\n"]]],[],null,[]]