• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2023 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 package org.chromium.base.metrics;
6 
7 /** Represents one single bucket of a histogram, with the count of records in that bucket. */
8 public class HistogramBucket {
9     public final int mMin;
10     public final long mMax;
11     public final int mCount;
12 
HistogramBucket(int min, long max, int count)13     public HistogramBucket(int min, long max, int count) {
14         mMin = min;
15         mMax = max;
16         mCount = count;
17     }
18 
contains(int value)19     public boolean contains(int value) {
20         return value >= mMin && value < mMax;
21     }
22 }
23