Class AbbreviationMap<Value>

java.lang.Object
com.hypixel.hytale.server.core.command.system.AbbreviationMap<Value>
Type Parameters:
Value - The type that gets stored as the value in this map.

public class AbbreviationMap<Value> extends Object
Resolves an input string to a value by matching against registered keys. Supports exact matches, prefix abbreviations, and unique substring matches with priority: exact > prefix > substring.
  • Method Details

    • get

      @Nullable public Value get(@Nonnull String input)
      Resolves the given input to a value using the priority order: exact match, then unique prefix match, then unique substring match. Returns null if no match is found or if the match is ambiguous at the best priority level.
    • create

      @Nonnull public static <V> AbbreviationMap.AbbreviationMapBuilder<V> create()