Class WXMVMNetDeviceNames

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

public final class WXMVMNetDeviceNames
extends java.lang.Object
Functions over VMNet device names.
  • Method Summary

    Modifier and Type Method Description
    static java.lang.String checkValid​(java.lang.String name)
    Check that a string represents a valid VMNet device 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 VMNet device name string
      Returns:
      true if the given string represents a valid VMNet device name
    • checkValid

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