| Modifier and Type | Field and Description | 
|---|---|
| private java.lang.String | director | 
| private java.lang.String | title | 
| private int | year | 
| Constructor and Description | 
|---|
| VideoObj(java.lang.String title,
        int year,
        java.lang.String director)Initialize all object attributes. | 
| 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. | 
private final java.lang.String title
private final int year
private final java.lang.String director
VideoObj(java.lang.String title, int year, java.lang.String director)
java.lang.IllegalArgumentException - if object invariant violated.public java.lang.String director()
Videopublic java.lang.String title()
Videopublic boolean equals(java.lang.Object thatObject)
Videopublic int hashCode()
Videopublic int compareTo(Video that)
Video