From 2d215536bb152c48523cbe8df83f85ee37609f34 Mon Sep 17 00:00:00 2001 From: "U-BASIS\\dsmyda" Date: Wed, 16 Dec 2020 17:46:35 -0500 Subject: [PATCH] Added comments to the PageViews class --- .../sleuthkit/autopsy/discovery/search/SearchData.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Core/src/org/sleuthkit/autopsy/discovery/search/SearchData.java b/Core/src/org/sleuthkit/autopsy/discovery/search/SearchData.java index d94a189f11..87505f267b 100644 --- a/Core/src/org/sleuthkit/autopsy/discovery/search/SearchData.java +++ b/Core/src/org/sleuthkit/autopsy/discovery/search/SearchData.java @@ -74,6 +74,10 @@ public final class SearchData { } } + /** + * Enum representing the number of page views a domain has received. Page + * views a grouped into ranges for cleaner display and management. + */ @NbBundle.Messages({ "# {0} - minValue", "# {1} - maxValue", @@ -105,10 +109,16 @@ public final class SearchData { } } + /** + * Determines if the given count is covered by this PageView interval. + */ boolean covers(long count) { return count >= minValue && count <= maxValue; } + /** + * Utility to fetch the appropriate PageView interval for the given count. + */ public static PageViews fromPageViewCount(long count) { for (PageViews view : PageViews.values()) { if (view.covers(count)) {