Module ical4j.core

Class FixedUidGenerator

java.lang.Object
net.fortuna.ical4j.util.FixedUidGenerator
All Implemented Interfaces:
Supplier<Uid>, UidGenerator

public class FixedUidGenerator extends Object implements UidGenerator
$Id$ Created on 11/03/2007 Generates Uid properties in a similar fashion to that recommended in section 4.8.4.7 of the specification.
  • Constructor Details

    • FixedUidGenerator

      public FixedUidGenerator(String pid) throws SocketException
      Parameters:
      pid - a unique process identifier for the host machine
      Throws:
      SocketException - where host information cannot be retrieved
    • FixedUidGenerator

      public FixedUidGenerator(HostInfo hostInfo, String pid)
      Parameters:
      hostInfo - custom host information
      pid - a unique process identifier for the host machine
  • Method Details

    • generateUid

      public Uid generateUid()
      Specified by:
      generateUid in interface UidGenerator
      Returns:
      a unique component identifier