library
Class ReferenceBook

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

public class ReferenceBook
extends Book


Method Summary
 void checkout(java.lang.String patron, java.lang.String dueDate)
          process to check out a book, if allowed
 java.lang.String circulationStatus()
           
 int compareTo(library.LibraryBook lib)
           
 java.lang.String getCollection()
          class getters and setters
 void returned()
          process for recording a book has been returned, if allowed
 void setCollection(java.lang.String collection)
           
 java.lang.String toString()
          add circulation to object representing the string
 
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

getCollection

public java.lang.String getCollection()
class getters and setters


setCollection

public void setCollection(java.lang.String collection)

checkout

public void checkout(java.lang.String patron,
                     java.lang.String dueDate)
process to check out a book, if allowed


returned

public void returned()
process for recording a book has been returned, if allowed


circulationStatus

public java.lang.String circulationStatus()
Returns:
status of book in library reference books do not circulate

toString

public java.lang.String toString()
add circulation to object representing the string

Returns:
title, author, ISBN, call number as a String for printing

compareTo

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