Class WXMMachineNames

java.lang.Object
com.io7m.waxmill.machines.WXMMachineNames

public final class WXMMachineNames
extends java.lang.Object
Functions over machine names.
  • Method Summary

    Modifier and Type Method Description
    static java.lang.String checkValid​(java.lang.String name)
    Check that a string represents a valid machine name.
    static boolean isValid​(java.lang.String name)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • isValid

      public static boolean isValid​(java.lang.String name)
      Parameters:
      name - The raw name string
      Returns:
      true if the given string represents a valid machine name
    • checkValid

      public static java.lang.String checkValid​(java.lang.String name)
      Check that a string represents a valid machine name.
      Parameters:
      name - The raw name string
      Returns:
      name
      Throws:
      java.lang.IllegalArgumentException - If the string is not a machine name