com.threerings.config
Class ConfigReferenceSet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.HashSet<Tuple<Class<?>,ConfigReference>>
              extended by com.threerings.config.ConfigReferenceSet
All Implemented Interfaces:
Serializable, Cloneable, Iterable<Tuple<Class<?>,ConfigReference>>, Collection<Tuple<Class<?>,ConfigReference>>, Set<Tuple<Class<?>,ConfigReference>>

public class ConfigReferenceSet
extends HashSet<Tuple<Class<?>,ConfigReference>>

A set of config references of different types.

See Also:
Serialized Form

Constructor Summary
ConfigReferenceSet()
           
 
Method Summary
<T extends ManagedConfig>
boolean
add(Class<T> clazz, ConfigReference<T> ref)
          Adds a reference to the set.
<T extends ManagedConfig>
boolean
add(Class<T> clazz, String name)
          Adds a reference to the set.
 
Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
 

Constructor Detail

ConfigReferenceSet

public ConfigReferenceSet()
Method Detail

add

public <T extends ManagedConfig> boolean add(Class<T> clazz,
                                             String name)
Adds a reference to the set.


add

public <T extends ManagedConfig> boolean add(Class<T> clazz,
                                             ConfigReference<T> ref)
Adds a reference to the set.



Copyright © 2011. All Rights Reserved.