Autopsy  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
DomainSearchThumbnailRequest.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2020 Basis Technology Corp.
5  * Contact: carrier <at> sleuthkit <dot> org
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 package org.sleuthkit.autopsy.discovery.search;
20 
21 import java.util.Objects;
22 import org.sleuthkit.datamodel.SleuthkitCase;
23 
29 
30  private final SleuthkitCase sleuthkitCase;
31  private final String domain;
32  private final int iconSize;
33 
42  public DomainSearchThumbnailRequest(SleuthkitCase sleuthkitCase,
43  String domain, int iconSize) {
44  this.sleuthkitCase = sleuthkitCase;
45  this.domain = domain;
46  this.iconSize = iconSize;
47  }
48 
54  public SleuthkitCase getSleuthkitCase() {
55  return sleuthkitCase;
56  }
57 
63  public String getDomain() {
64  return domain;
65  }
66 
72  public int getIconSize() {
73  return iconSize;
74  }
75 
76  @Override
77  public boolean equals(Object other) {
78  if (other == this) {
79  return true;
80  }
81 
82  if (!(other instanceof DomainSearchThumbnailRequest)) {
83  return false;
84  }
85 
86  DomainSearchThumbnailRequest otherRequest = (DomainSearchThumbnailRequest) other;
87  return this.sleuthkitCase == otherRequest.getSleuthkitCase()
88  && this.domain.equals(otherRequest.getDomain())
89  && this.iconSize == otherRequest.getIconSize();
90  }
91 
92  @Override
93  public int hashCode() {
94  return 79 * 5 + Objects.hash(this.domain, this.iconSize);
95  }
96 }
DomainSearchThumbnailRequest(SleuthkitCase sleuthkitCase, String domain, int iconSize)

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.