/[classpath]/inetlib/source/gnu/inet/nntp/Group.java
ViewVC logotype

Diff of /inetlib/source/gnu/inet/nntp/Group.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by dog, Thu Oct 21 15:21:55 2004 UTC revision 1.6 by dog, Thu Nov 25 22:15:05 2004 UTC
# Line 1  Line 1 
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.
# Line 42  package gnu.inet.nntp; Line 42  package gnu.inet.nntp;
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  {  {
# Line 52  public final class Group Line 51  public final class Group
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;
# Line 63  public final class Group Line 62  public final class Group
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    }    }
# Line 71  public final class Group Line 70  public final class Group
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    }    }
# Line 79  public final class Group Line 78  public final class Group
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    }    }
# Line 87  public final class Group Line 86  public final class Group
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    

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26