java.lang.Object
net.andreinc.mockneat.abstraction.MockUnitBase
net.andreinc.mockneat.unit.networking.Macs
All Implemented Interfaces:
MockUnit<java.lang.String>, MockUnitString

public class Macs
extends MockUnitBase
implements MockUnitString
  • Constructor Details

  • Method Details

    • macs

      public static Macs macs()

      Returns a Macs object that can be used to generate arbitrary physical addresses (MAC).

      Returns:
      A re-usable Macs object. The Macs class implements MockUnitString.
    • supplier

      public java.util.function.Supplier<java.lang.String> supplier()
      Description copied from interface: MockUnit
      This is the sole abstract method of the interface. Needs to be implemented every-time a MockUnit is implemented.
      Specified by:
      supplier in interface MockUnit<java.lang.String>
      Returns:
      A Supplier<T>.
    • type

      public MockUnitString type​(MACAddressFormatType type)

      This method can be used to setup the format of the MAC address.

      Parameters:
      type - The format.
      Returns:
      A new MockUnitString.