public class Owner extends Object
long
identification number.Constructor and Description |
---|
Owner(String name)
Initialize this owner to have the given name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Compares two owners for equality.
|
long |
getID()
Returns the unique identification number assigned to this owner.
|
String |
getName()
Returns the name of this owner.
|
int |
hashCode()
Returns a hash code for this owner.
|
String |
toString()
Returns a string representation of this owner.
|
public Owner(String name)
name
- the non-null name of this ownerpublic long getID()
public String getName()
public int hashCode()
public boolean equals(Object obj)