library
Class Library

java.lang.Object
  extended by library.Library

public class Library
extends java.lang.Object


Method Summary
 void addBook(library.LibraryBook book)
           
 void checkout(java.lang.String patron, java.lang.String dueDate, java.lang.String callNum)
           
 library.LibraryBook findBook(library.LibraryBook book)
          locates a book in the library
static void main(java.lang.String[] args)
          main testing program
 void printLibrary()
          prints all books in the library
 void returned(java.lang.String callNum)
           
 void sortLibrary()
          sort books in the library by call number
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addBook

public void addBook(library.LibraryBook book)

printLibrary

public void printLibrary()
prints all books in the library


findBook

public library.LibraryBook findBook(library.LibraryBook book)
locates a book in the library

Parameters:
book - book being search in the library
Returns:
book object if book is found null otherwise

sortLibrary

public void sortLibrary()
sort books in the library by call number


checkout

public void checkout(java.lang.String patron,
                     java.lang.String dueDate,
                     java.lang.String callNum)

returned

public void returned(java.lang.String callNum)

main

public static void main(java.lang.String[] args)
main testing program

Parameters:
args - not used