Changed builder model to make data available on the character classes
and components unmodifiable. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@590 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: BuilderModel.java,v 1.1 2001/11/02 01:10:28 shaper Exp $
|
||||
// $Id: BuilderModel.java,v 1.2 2001/11/02 15:39:07 shaper Exp $
|
||||
|
||||
package com.threerings.cast.builder;
|
||||
|
||||
@@ -54,16 +54,16 @@ public class BuilderModel
|
||||
*/
|
||||
public List getComponentClasses ()
|
||||
{
|
||||
return _classes;
|
||||
return Collections.unmodifiableList(_classes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a hashtable of the components available for each
|
||||
* component class, keyed on component class id.
|
||||
* Returns a map of the components available for each component
|
||||
* class, keyed on component class id.
|
||||
*/
|
||||
public HashIntMap getComponents ()
|
||||
public Map getComponents ()
|
||||
{
|
||||
return _components;
|
||||
return Collections.unmodifiableMap(_components);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user