mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
33 lines
692 B
Java
33 lines
692 B
Java
package org.sleuthkit.autopsy.datamodel;
|
|
|
|
import java.util.Map;
|
|
|
|
public class KeyValueThing {
|
|
Map<String, Object> map;
|
|
int id;
|
|
String name;
|
|
|
|
/**
|
|
*
|
|
* @param map must iterate it keys and values in a consistent order
|
|
* (use of LinkedHashMap is recommended)
|
|
* @param id an arbitrary id representing the type of the thing
|
|
*/
|
|
public KeyValueThing(String name, Map<String, Object> map, int id) {
|
|
this.name = name;
|
|
this.map = map;
|
|
this.id = id;
|
|
}
|
|
|
|
public int getId() {
|
|
return id;
|
|
}
|
|
|
|
public Map<String, Object> getMap() {
|
|
return map;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
} |