Class TestPreview

java.lang.Object
de.sormuras.bach.project.TestPreview
All Implemented Interfaces:
Realm<TestPreview>

public final class TestPreview
extends Object
implements Realm<TestPreview>
Source set of test-preview modules.
  • Constructor Details

  • Method Details

    • units

      public SourceUnitMap units()
      Description copied from interface: Realm
      Return the underlying map of modular source units.
      Specified by:
      units in interface Realm<TestPreview>
      Returns:
      A SourceUnitMap instance
    • name

      public String name()
      Description copied from interface: Realm
      Return the name of the realm.
      Specified by:
      name in interface Realm<TestPreview>
      Returns:
      An empty string for the main realm, else a non-empty name string
    • of

      public static TestPreview of()
    • units

      public TestPreview units​(SourceUnitMap units)
      Description copied from interface: Realm
      Create a new copy instance with setting the given modular source units map.
      Specified by:
      units in interface Realm<TestPreview>
      Parameters:
      units - The modular source unit map to set
      Returns:
      A new copy instance