| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Video that)
Compares the attributes of this object with those of thatObject, in
the following order: title, year, director.
|
java.lang.String |
director()
Return the value of the attribute.
|
boolean |
equals(java.lang.Object thatObject)
Compare the attributes of this object with those of thatObject.
|
int |
hashCode()
Return a hash code value for this object using the algorithm from Bloch:
fields are added in the following order: title, year, director.
|
java.lang.String |
title()
Return the value of the attribute.
|
java.lang.String |
toString()
Return a string representation of the object in the following format:
"title (year) : director". |
int |
year()
Return the value of the attribute.
|
java.lang.String director()
java.lang.String title()
int year()
boolean equals(java.lang.Object thatObject)
equals in class java.lang.ObjectthatObject - the Object to be compared.int hashCode()
hashCode in class java.lang.Objectint compareTo(Video that)
compareTo in interface java.lang.Comparable<Video>that - the Video to be compared.java.lang.String toString()
"title (year) : director".toString in class java.lang.Object