|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.pdx.cs399J.rmi.Movie
public class Movie
This class represents a remote Movie object. It is
Serializable because instances of Movie are
sent from the server to client. Because it does not implement the
Remote interface, the client JVM receives copies
of the Movie object. That is, changes to a
Movie made on by the client are not reflected in the
server.
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Two Movies are equal if they have the same id |
Set<Long> |
getActors()
Returns the ids of the actors that are in this movie |
Map<String,Long> |
getCharacters()
Returns a map of character names to the actor that played them. |
long |
getId()
Returns this Movie's id |
String |
getTitle()
Returns the title of this Movie |
int |
getYear()
Returns the year in which this movie was released |
void |
setTitle(String title)
Sets the title of this Movie |
void |
setYear(int year)
Sets the year in which this movie was released |
String |
toString()
Returns a brief textual representation of this Movie |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public long getId()
Movie's id
public String getTitle()
Movie
public void setTitle(String title)
Movie
public int getYear()
public void setYear(int year)
public Map<String,Long> getCharacters()
public Set<Long> getActors()
public String toString()
Movie
toString in class Objectpublic boolean equals(Object o)
Movies are equal if they have the same id
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||