Autopsy  4.19.3
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 308 of file DataSourceInfoUtilities.java.

Member Function Documentation

int org.sleuthkit.autopsy.datasourcesummary.datamodel.DataSourceInfoUtilities.AttributeComparator.compare ( BlackboardAttribute  attribute1,
BlackboardAttribute  attribute2 
)
int org.sleuthkit.autopsy.datasourcesummary.datamodel.DataSourceInfoUtilities.AttributeComparator.compare ( BlackboardAttribute.Type  type,
BlackboardAttribute  attribute1,
BlackboardAttribute  attribute2 
)
private

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.

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

Definition at line 342 of file DataSourceInfoUtilities.java.

Member Data Documentation

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

Definition at line 310 of file DataSourceInfoUtilities.java.


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

Copyright © 2012-2022 Basis Technology. Generated on: Tue Jun 27 2023
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.