Class WildcardSupportingMap<T>


  • public class WildcardSupportingMap<T>
    extends java.lang.Object
    Utility class that manages mappings from entity types/codes (possibly including wildcards) to IServerPlugin objects.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addThingMapping​(EntityKindAndTypeCode entityKindAndCode, T thing)
      Add a mapping from the entity kind/code to a factory.
      protected T tryThing​(EntityKindAndTypeCode entityKindAndCode)
      Return the first factory that matches the given entityKindAndCode, or null if none is found.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WildcardSupportingMap

        public WildcardSupportingMap()
    • Method Detail

      • addThingMapping

        protected void addThingMapping​(EntityKindAndTypeCode entityKindAndCode,
                                       T thing)
        Add a mapping from the entity kind/code to a factory.
      • tryThing

        protected T tryThing​(EntityKindAndTypeCode entityKindAndCode)
        Return the first factory that matches the given entityKindAndCode, or null if none is found.