001package myhw3.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         * Title and director are "trimmed" to remove leading and final space.
015         * @throws IllegalArgumentException if object invariant violated.
016         */
017        VideoObj(String title, int year, String director) {
018                this.title = title;
019                this.director = director;
020                this.year = year;
021        }
022
023        public String director() {
024                // TODO
025                return "director";
026        }
027
028        public String title() {
029                // TODO
030                return "title";
031        }
032
033        public int year() {
034                // TODO
035                return -1;
036        }
037
038        public boolean equals(Object thatObject) {
039                // TODO
040                return false;
041        }
042
043        public int hashCode() {
044                // TODO
045                return -1;
046        }
047
048        public int compareTo(Video that) {
049                // TODO
050                return -1;
051        }
052
053        public String toString() {
054                // TODO
055                return "El Mariachi (1996) : Rodriguez";
056        }
057}