001package myhw2.data; 002 003/** 004 * Implementation of Video interface. 005 * @see Data 006 */ 007final class VideoObj implements Video { 008 private final String title; 009 private final int year; 010 private final String director; 011 012 /** 013 * Initialize all object attributes. 014 */ 015 VideoObj(String title, int year, String director) { 016 this.title = title; 017 this.director = director; 018 this.year = year; 019 } 020 021 public String director() { 022 // TODO 023 return "director"; 024 } 025 026 public String title() { 027 // TODO 028 return "title"; 029 } 030 031 public int year() { 032 // TODO 033 return -1; 034 } 035 036 public boolean equals(Object thatObject) { 037 // TODO 038 return false; 039 } 040 041 public int hashCode() { 042 // TODO 043 return -1; 044 } 045 046 public int compareTo(Video that) { 047 // TODO 048 return -1; 049 } 050 051 public String toString() { 052 // TODO 053 return "El Mariachi (1996) : Rodriguez"; 054 } 055}