Autopsy  4.16.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Private Member Functions | Private Attributes | List of all members
org.sleuthkit.autopsy.datasourcesummary.datamodel.DataSourceInfoUtilities.AttributeComparator Class Reference

Inherits Comparator< BlackboardAttribute >.

Public Member Functions

int compare (BlackboardAttribute attribute1, BlackboardAttribute attribute2)

Private Member Functions

int compare (BlackboardAttribute.Type type, BlackboardAttribute attribute1, BlackboardAttribute attribute2)

Private Attributes

final SortOrder direction

Detailed Description

Compares the value of two BlackboardAttributes that are of the same type. This comparator is specialized for data source summary and only supports the basic attribute types of string, integer, long, datetime (long), and double.

Note: A runtime exception will be thrown from the compare if the attributes are not of the same type or if their type is not supported.

Definition at line 304 of file

Member Function Documentation

int ( BlackboardAttribute  attribute1,
BlackboardAttribute  attribute2 

Definition at line 313 of file

int ( BlackboardAttribute.Type  type,
BlackboardAttribute  attribute1,
BlackboardAttribute  attribute2 

Compared two attributes of the given type. Note, that not all attribute types are supported. A runtime exception will be thrown if an unsupported attribute is supplied.

typeAttribute type.
attribute1First attribute to compare.
attribute2Second attribute to compare.
Compare result.

Definition at line 338 of file

Member Data Documentation

final SortOrder org.sleuthkit.autopsy.datasourcesummary.datamodel.DataSourceInfoUtilities.AttributeComparator.direction

Definition at line 306 of file

The documentation for this class was generated from the following file:

Copyright © 2012-2020 Basis Technology. Generated on: Tue Sep 22 2020
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.