1 |
/* |
/* |
2 |
* $Id$ |
* Group.java |
3 |
* Copyright (C) 2002 The Free Software Foundation |
* Copyright (C) 2002 The Free Software Foundation |
4 |
* |
* |
5 |
* This file is part of GNU inetlib, a library. |
* This file is part of GNU inetlib, a library. |
42 |
* An item in an NNTP newsgroup listing. |
* An item in an NNTP newsgroup listing. |
43 |
* |
* |
44 |
* @author <a href='mailto:dog@gnu.org'>Chris Burdess</a> |
* @author <a href='mailto:dog@gnu.org'>Chris Burdess</a> |
|
* @version $Revision$ $Date$ |
|
45 |
*/ |
*/ |
46 |
public final class Group |
public final class Group |
47 |
{ |
{ |
51 |
int first; |
int first; |
52 |
boolean canPost; |
boolean canPost; |
53 |
|
|
54 |
Group (String name, int last, int first, boolean canPost) |
Group(String name, int last, int first, boolean canPost) |
55 |
{ |
{ |
56 |
this.name = name; |
this.name = name; |
57 |
this.last = last; |
this.last = last; |
62 |
/** |
/** |
63 |
* The name of the newsgroup. |
* The name of the newsgroup. |
64 |
*/ |
*/ |
65 |
public String getName () |
public String getName() |
66 |
{ |
{ |
67 |
return name; |
return name; |
68 |
} |
} |
70 |
/** |
/** |
71 |
* The number of the last known article currently in the newsgroup. |
* The number of the last known article currently in the newsgroup. |
72 |
*/ |
*/ |
73 |
public int getLast () |
public int getLast() |
74 |
{ |
{ |
75 |
return last; |
return last; |
76 |
} |
} |
78 |
/** |
/** |
79 |
* The number of the first article currently in the newsgroup. |
* The number of the first article currently in the newsgroup. |
80 |
*/ |
*/ |
81 |
public int getFirst () |
public int getFirst() |
82 |
{ |
{ |
83 |
return first; |
return first; |
84 |
} |
} |
86 |
/** |
/** |
87 |
* True if posting to this newsgroup is allowed. |
* True if posting to this newsgroup is allowed. |
88 |
*/ |
*/ |
89 |
public boolean isCanPost () |
public boolean isCanPost() |
90 |
{ |
{ |
91 |
return canPost; |
return canPost; |
92 |
} |
} |
93 |
|
|
94 |
} |
} |
95 |
|
|