1 22 23 package gnu.mail.providers.imap4; 24 25 import java.util.HashMap ; 26 import java.util.Map ; 27 import java.util.Set ; 28 29 35 public final class MessageStatus 36 { 37 38 int messageNumber; 39 40 byte[] content; 41 42 Map properties; 43 44 MessageStatus(int messageNumber) 45 { 46 this.messageNumber = messageNumber; 47 properties = new HashMap (); 48 } 49 50 public int getMessageNumber() 51 { 52 return messageNumber; 53 } 54 55 public byte[] getContent() 56 { 57 return content; 58 } 59 60 public Object get(String key) 61 { 62 return properties.get(key); 63 } 64 65 public Set keySet() 66 { 67 return properties.keySet(); 68 } 69 70 void put(String key, Object value) 71 { 72 properties.put(key, value); 73 } 74 75 } 76 | Popular Tags |