Class HardwareBinder.Ignore

  • Enclosing class:
    HardwareBinder

    public class HardwareBinder.Ignore
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Ignore()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      HardwareBinder architecture()
      The UUID generation uses the architecture string as returned by System.getProperty("os.arch").
      HardwareBinder hostName()
      When calculating the machine UUID the host name is also taken into account by default.
      HardwareBinder network()
      When calculating the uuid of a machine the network interfaces are enumerated and their parameters are taken into account.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Ignore

        public Ignore()
    • Method Detail

      • hostName

        public HardwareBinder hostName()
        When calculating the machine UUID the host name is also taken into account by default. If you want the method to ignore the machine name then call this method before calling any UUID calculation method.
        Returns:
        the hardware binder object so method calls can be chained
      • network

        public HardwareBinder network()
        When calculating the uuid of a machine the network interfaces are enumerated and their parameters are taken into account. The names and the hardware addresses are used.

        If you want to ignore the network when generating the uuid then call this method before any uuid calculating methods.

        Returns:
        the hardware binder object so method calls can be chained
      • architecture

        public HardwareBinder architecture()
        The UUID generation uses the architecture string as returned by System.getProperty("os.arch"). In some rare cases you want to have a UUID that is independent of the architecture.
        Returns:
        the hardware binder object so method calls can be chained