mirror of https://github.com/moparisthebest/k-9
29 lines
676 B
Java
29 lines
676 B
Java
package com.fsck.k9.ui.crypto;
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
import com.fsck.k9.mail.Part;
|
|
import com.fsck.k9.mailstore.OpenPgpResultAnnotation;
|
|
|
|
|
|
public class MessageCryptoAnnotations {
|
|
private HashMap<Part, OpenPgpResultAnnotation> annotations = new HashMap<Part, OpenPgpResultAnnotation>();
|
|
|
|
MessageCryptoAnnotations() {
|
|
// Package-private constructor
|
|
}
|
|
|
|
void put(Part part, OpenPgpResultAnnotation annotation) {
|
|
annotations.put(part, annotation);
|
|
}
|
|
|
|
public OpenPgpResultAnnotation get(Part part) {
|
|
return annotations.get(part);
|
|
}
|
|
|
|
public boolean has(Part part) {
|
|
return annotations.containsKey(part);
|
|
}
|
|
}
|