Let the type system know that we know that we don't know what kind of
comparable we're dealing with. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@691 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -63,7 +63,7 @@ public class TableLobbyObject extends LobbyObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
// from interface TableLobbyObject
|
// from interface TableLobbyObject
|
||||||
public void removeFromTables (Comparable key)
|
public void removeFromTables (Comparable<?> key)
|
||||||
{
|
{
|
||||||
removeFromTableSet(key);
|
removeFromTableSet(key);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,35 +33,35 @@ public interface TableLobbyObject
|
|||||||
* Returns a reference to the distributed set instance that will be
|
* Returns a reference to the distributed set instance that will be
|
||||||
* holding the tables.
|
* holding the tables.
|
||||||
*/
|
*/
|
||||||
public DSet getTables ();
|
DSet getTables ();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds the supplied table instance to the tables set (using the
|
* Adds the supplied table instance to the tables set (using the
|
||||||
* appropriate distributed object mechanisms).
|
* appropriate distributed object mechanisms).
|
||||||
*/
|
*/
|
||||||
public void addToTables (Table table);
|
void addToTables (Table table);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates the value of the specified table instance in the tables
|
* Updates the value of the specified table instance in the tables
|
||||||
* distributed set (using the appropriate distributed object
|
* distributed set (using the appropriate distributed object
|
||||||
* mechanisms).
|
* mechanisms).
|
||||||
*/
|
*/
|
||||||
public void updateTables (Table table);
|
void updateTables (Table table);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes the table instance that matches the specified key from the
|
* Removes the table instance that matches the specified key from the
|
||||||
* tables set (using the appropriate distributed object mechanisms).
|
* tables set (using the appropriate distributed object mechanisms).
|
||||||
*/
|
*/
|
||||||
public void removeFromTables (Comparable key);
|
void removeFromTables (Comparable<?> key);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a reference to the table service configured in this object.
|
* Returns a reference to the table service configured in this object.
|
||||||
*/
|
*/
|
||||||
public TableMarshaller getTableService ();
|
TableMarshaller getTableService ();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configures the table service that clients should use to communicate table requests back to
|
* Configures the table service that clients should use to communicate table requests back to
|
||||||
* the table manager handling these tables.
|
* the table manager handling these tables.
|
||||||
*/
|
*/
|
||||||
public void setTableService (TableMarshaller service);
|
void setTableService (TableMarshaller service);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user