Source of 14.18.java


  1: public T getEntry(int givenPosition)
  2: {
  3:    if ((givenPosition >= 1) && (givenPosition <= numberOfEntries))
  4:    {
  5:       assert !isEmpty();
  6:       return getNodeAt(givenPosition).getData();
  7:    }
  8:    else
  9:       throw new IndexOutOfBoundsException(
 10:                 "Illegal position given to getEntry operation.");
 11: } // end getEntry
 12: // Version 4.0