public class Book extends Object
Constructor and Description |
---|
Book() |
Book(String title,
long id,
String publisher,
String pub_date,
String created,
long owner,
String isbn) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Returns true if obj is a book and id, owner, title, publisher, copy and
pub_date fields match the values of this exactly and the isbn fields
match when "-"'s are removed.
|
int |
getCopy() |
String |
getCreated() |
int |
getEditable() |
long |
getId() |
String |
getIsbn() |
String |
getIsbnc() |
long |
getOwner() |
String |
getPub_date() |
String |
getPublisher() |
String |
getTitle() |
int |
hashCode() |
String |
normalizeIsbn(String isbn)
Normalizes isbn numbers to n-nnn-nnnnn-n format by stripping
all but digits and adding "-"'s in correct positions
|
void |
setCopy(int copy) |
void |
setCreated(String created) |
void |
setEditable(int editable) |
void |
setId(long id) |
void |
setId(Long id) |
void |
setIsbn(String isbn) |
void |
setOwner(long owner) |
void |
setOwner(Long owner) |
void |
setPub_date(String pub_date) |
void |
setPublisher(String publisher) |
void |
setTitle(String title) |
String |
toString() |
public void setEditable(int editable)
public int getEditable()
public String getCreated()
public void setCreated(String created)
public long getId()
public void setId(long id)
public void setId(Long id)
public String getIsbn()
public void setIsbn(String isbn)
public long getOwner()
public void setOwner(long owner)
public void setOwner(Long owner)
public String getPub_date()
public void setPub_date(String pub_date)
public String getPublisher()
public void setPublisher(String publisher)
public String getTitle()
public void setTitle(String title)
public String getIsbnc()
public int getCopy()
public void setCopy(int copy)
public String normalizeIsbn(String isbn)
isbn
- - the input isbn stringpublic boolean equals(Object obj)
Copyright © 2003-2017 The Virtual Library Team. All Rights Reserved.