Package com.io7m.waxmill.machines

# Class WXMVirtualMachineSets

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

    public final class WXMVirtualMachineSets
    extends java.lang.Object

Functions over sets of virtual machines.

- ## Method Summary

  Modifier and Type | Method | Description
  --- | --- | ---
  `static WXMVirtualMachineSet` | `merge​(WXMMachineMessages messages, java.util.Collection<WXMVirtualMachineSet> machineSets)` | Create a set consisting of the union of all of the given sets.
  `static WXMVirtualMachineSet` | `one​(WXMVirtualMachine machine)` | Create a set consisting of a single machine.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### one

    public static WXMVirtualMachineSet one​(WXMVirtualMachine machine)
    Create a set consisting of a single machine.
    Parameters:
      `machine` - The machine
    Returns:
      A single-machine set

  - ### merge

    public static WXMVirtualMachineSet merge​(WXMMachineMessages messages, java.util.Collection<WXMVirtualMachineSet> machineSets) throws WXMException
    Create a set consisting of the union of all of the given sets.
    Parameters:
      `messages` - The machine messages
      `machineSets` - The sets of machines
    Returns:
      A set consisting of all of the machines in all sets
    Throws:
      `WXMException` - If two machines have the same ID