Class MapArgumentBuilder<K,V>

java.lang.Object
dev.jorel.commandapi.arguments.MapArgumentBuilder<K,V>
Type Parameters:
K - The type of keys this map should contain
V - The type of values this map should contain

public class MapArgumentBuilder<K,V> extends Object
A builder to create a MapArgument
  • Constructor Details

    • MapArgumentBuilder

      public MapArgumentBuilder(String nodeName)
      Creates a new MapArgumentBuilder with a specified node name. Defaults the delimiter for each key/value pair to a colon
      Parameters:
      nodeName - the name of the node for this argument
    • MapArgumentBuilder

      public MapArgumentBuilder(String nodeName, char delimiter)
      Creates a new MapArgumentBuilder with a specified node name
      Parameters:
      nodeName - the name of the node for this argument
      delimiter - the separator for each key/value pair
  • Method Details