Class SBPeer.Builder

java.lang.Object
com.io7m.sunburst.model.SBPeer.Builder
Enclosing class:
SBPeer

public static final class SBPeer.Builder extends Object
A mutable import builder.
  • Method Details

    • addImport

      public SBPeer.Builder addImport(SBPackageIdentifier identifier)
      Add an import to the set.
      Parameters:
      identifier - The identifier
      Returns:
      A new import
    • addImportText

      public SBPeer.Builder addImportText(String text)
      Add an import to the set.
      Parameters:
      text - The text to parse as an identifier
      Returns:
      A new import
    • build

      public SBPeer build() throws SBPeerException
      Build the peer.
      Returns:
      The peer
      Throws:
      SBPeerException - If the peer would not be well-formed