KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > tests > jfun > parsec > rfc822 > Fields


1 /*
2  * Created on Dec 20, 2004
3  *
4  * Author Ben Yu
5  */

6 package tests.jfun.parsec.rfc822;
7
8 /**
9  * @author Ben Yu
10  *
11  * Dec 20, 2004
12  */

13 public class Fields {
14   private final Dates dates;
15   private final Source source;
16   private final NamedObject[] destination;
17   private final NamedObject[] optionalField;
18   
19   /**
20    * @param dates
21    * @param source
22    * @param destination
23    * @param optionalField
24    */

25   Fields(final Dates dates, final Source source,
26       final NamedObject[] destination, final NamedObject[] optionalField) {
27     super();
28     this.dates = dates;
29     this.source = source;
30     this.destination = destination;
31     this.optionalField = optionalField;
32   }
33   /**
34    * @return Returns the dates.
35    */

36   public Dates getDates() {
37     return dates;
38   }
39   /**
40    * @return Returns the destination.
41    */

42   public NamedObject[] getDestination() {
43     return destination;
44   }
45   /**
46    * @return Returns the optionalField.
47    */

48   public NamedObject[] getOptionalField() {
49     return optionalField;
50   }
51   /**
52    * @return Returns the source.
53    */

54   public Source getSource() {
55     return source;
56   }
57 }
58
Popular Tags