library
Class CirculatingBook

java.lang.Object
  extended by library.Book
      extended by library.CirculatingBook
All Implemented Interfaces:
java.lang.Comparable<library.LibraryBook>

public class CirculatingBook
extends Book


Method Summary
 void checkout(java.lang.String patron, java.lang.String due)
          check out book by recording parameter information
 java.lang.String circulationStatus()
           
 int compareTo(library.LibraryBook lib)
           
 void returned()
          record that book has been returned
 java.lang.String toString()
           
 
Methods inherited from class library.Book
getAuthor, getIsbn, getTitle, setAuthor, setIsbn, setTitle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

checkout

public void checkout(java.lang.String patron,
                     java.lang.String due)
check out book by recording parameter information

Parameters:
patron - person checking out book
due - date book is due to be returned

returned

public void returned()
record that book has been returned


circulationStatus

public java.lang.String circulationStatus()
Returns:
current holder and due date information if book checked out and "book available" otherwise

compareTo

public int compareTo(library.LibraryBook lib)
Specified by:
compareTo in interface java.lang.Comparable<library.LibraryBook>

toString

public java.lang.String toString()
Overrides:
toString in class Book
Returns:
title, author, ISBN, call number as a String for printing