Class PropertiesTypeLoader.TypeNameSet

java.lang.Object
gw.internal.gosu.properties.PropertiesTypeLoader.TypeNameSet
Enclosing class:
PropertiesTypeLoader

static class PropertiesTypeLoader.TypeNameSet extends Object
Set of case insensitive type names with operation to quickly find which type names in the set are possible matches for a full type name. A match is a prefix which is either an exact match or matches up to the package separator (.). So, for example, given the full name one.two.three then one, one.two and one.two.three are all matches.
  • Field Details

    • _names

      private final String[] _names
  • Constructor Details

    • TypeNameSet

      public TypeNameSet(Set<String> names)
  • Method Details

    • addTo

      public void addTo(Collection<String> names)
    • findMatchesFor

      public List<String> findMatchesFor(String fullName)
    • getIndexOfLastPossibleMatch

      private int getIndexOfLastPossibleMatch(String fullName)
    • isPrefix

      private boolean isPrefix(String possiblePrefix, String fullName)
    • isMatch

      private boolean isMatch(String prefix, String fullName)