Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Biblioteca {
- private int pagBook,datepublish;
- private long ISBN;
- private String title,autor,editorial;
- public long getISBN() {
- return ISBN;
- }
- public int getPagBook() {
- return pagBook;
- }
- public int getDatepublish() {
- return datepublish;
- }
- public String getTitle() {
- return title;
- }
- public String getAutor() {
- return autor;
- }
- public String getEditorial() {
- return editorial;
- }
- public void setISBN(int ISBN) {
- long max=9999999999l,min=100000000l;
- if (ISBN<=max && ISBN>=min ) {
- this.ISBN = ISBN;
- }
- }
- public void setPagBook(int pagBook) {
- if(pagBook>0) {
- this.pagBook = pagBook;
- }
- }
- public void setDatepublish(int datepublish) {
- this.datepublish = datepublish;
- }
- public void setTitle(String title) {
- this.title = title;
- }
- public void setAutor(String autor) {
- this.autor = autor;
- }
- public void setEditorial(String editorial) {
- this.editorial = editorial;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement