Deprecated API


Contents
Deprecated Methods
type.lib.Portfolio.getFirst()
          As of version 4.0, replaced with Portfolio.iterator() Determine the first investment in this portfolio. This method should be invoked first whenever you intend to traverse the contents of the portfolio. If a non-null was returned, repeated invocations of Portfolio.getNext() will return the remaining investments in this portfolio until a null is returned. 
type.lib.GlobalCredit.getFirst()
          As of version 4.0, replaced with GlobalCredit.iterator() The base invocation of the forward iterator. 
type.lib.Student.getFirstCourse()
          As of version 4.0, replaced with Student.iterator() Determine the first course in the record of this student. 
type.lib.Portfolio.getNext()
          As of version 4.0, replaced with Portfolio.iterator() Determine the next investment in this portfolio. The method should be invoked only if Portfolio.getFirst() has already been invoked and a non-null was returned. 
type.lib.GlobalCredit.getNext()
          As of version 4.0, replaced with GlobalCredit.iterator() Follow up invocation of the forward iterator. 
type.lib.Student.getNextCourse()
          As of version 4.0, replaced with Student.iterator() Determine the next course in the record of this student. It is assumed a prior invocation of getFirstCourse was made and that it produced a non-null return. In order to browse through all courses taken, start by invoking getFirstCourse to get the first course number or null (if the student has not taken any course yet). If you do get a non-null return, keep invoking getNextCourse to get all the other courses in the record until a null is returned, indicating no more courses. 
 



Java by Abstraction: A Client-View Approach