~ubuntu-branches/ubuntu/precise/classpath/precise

« back to all changes in this revision

Viewing changes to java/util/LinkedList.java

  • Committer: Bazaar Package Importer
  • Author(s): Michael Koch
  • Date: 2006-05-27 16:11:15 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060527161115-h6e39eposdt5snb6
Tags: 2:0.91-3
* Install header files to /usr/include/classpath.
* debian/control: classpath: Conflict with jamvm < 1.4.3 and
  cacao < 0.96 (Closes: #368172).

Show diffs side-by-side

added added

removed removed

Lines of Context:
804
804
     * Returns the index of the next element.
805
805
     *
806
806
     * @return the next index
807
 
     * @throws ConcurrentModificationException if the list was modified
808
807
     */
809
808
    public int nextIndex()
810
809
    {
811
 
      checkMod();
812
810
      return position;
813
811
    }
814
812
 
816
814
     * Returns the index of the previous element.
817
815
     *
818
816
     * @return the previous index
819
 
     * @throws ConcurrentModificationException if the list was modified
820
817
     */
821
818
    public int previousIndex()
822
819
    {
823
 
      checkMod();
824
820
      return position - 1;
825
821
    }
826
822
 
828
824
     * Returns true if more elements exist via next.
829
825
     *
830
826
     * @return true if next will succeed
831
 
     * @throws ConcurrentModificationException if the list was modified
832
827
     */
833
828
    public boolean hasNext()
834
829
    {
835
 
      checkMod();
836
830
      return (next != null);
837
831
    }
838
832
 
840
834
     * Returns true if more elements exist via previous.
841
835
     *
842
836
     * @return true if previous will succeed
843
 
     * @throws ConcurrentModificationException if the list was modified
844
837
     */
845
838
    public boolean hasPrevious()
846
839
    {
847
 
      checkMod();
848
840
      return (previous != null);
849
841
    }
850
842