public interface ISite
This documentation describes the current draft of the PC2 API, which is subject to change.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Check whether this Site is the same as some other Site.
|
String |
getName()
Get the name of this site.
|
int |
getNumber()
Get the number of this site.
|
int |
hashCode()
Get the hashcode associated with this client.
|
String getName()
int getNumber()
boolean equals(Object obj)
Determination of whether two Sites are equal is based on whether they refer to the
same Site as originally created in PC2 by the Contest Administrator.
Note in particular that subsequent changes to a Site
made by the Contest Administrator (for example,
changes to the Site name) do not affect the result of the
equals()
method; if this Site refers to the same Site as the one indicated by the
specified parameter, this method will return true regardless of whether the internal contents of the two
Site objects is identical or not.