Autopsy  4.18.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 DataSourceInfoUtilities.java.

Member Function Documentation

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

Definition at line 313 of file DataSourceInfoUtilities.java.

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 338 of file DataSourceInfoUtilities.java.

Member Data Documentation

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

Definition at line 306 of file DataSourceInfoUtilities.java.


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

Copyright © 2012-2021 Basis Technology. Generated on: Thu Jul 8 2021
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.