Class ImmutableExploreResult.Builder
- java.lang.Object
-
- com.chutneytesting.agent.domain.explore.ImmutableExploreResult.Builder
-
- Enclosing class:
- ImmutableExploreResult
@NotThreadSafe public static final class ImmutableExploreResult.Builder extends Object
Builds instances of typeImmutableExploreResult. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableExploreResult.BuilderagentLinks(ExploreResult.Links<AgentId,AgentId> agentLinks)Initializes the value for theagentLinksattribute.ImmutableExploreResultbuild()Builds a newImmutableExploreResult.ImmutableExploreResult.Builderfrom(ExploreResult instance)Fill a builder with attribute values from the providedExploreResultinstance.ImmutableExploreResult.BuildertargetLinks(ExploreResult.Links<AgentId,TargetId> targetLinks)Initializes the value for thetargetLinksattribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableExploreResult.Builder from(ExploreResult instance)
Fill a builder with attribute values from the providedExploreResultinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
agentLinks
@CanIgnoreReturnValue public final ImmutableExploreResult.Builder agentLinks(ExploreResult.Links<AgentId,AgentId> agentLinks)
Initializes the value for theagentLinksattribute.- Parameters:
agentLinks- The value for agentLinks- Returns:
thisbuilder for use in a chained invocation
-
targetLinks
@CanIgnoreReturnValue public final ImmutableExploreResult.Builder targetLinks(ExploreResult.Links<AgentId,TargetId> targetLinks)
Initializes the value for thetargetLinksattribute.- Parameters:
targetLinks- The value for targetLinks- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableExploreResult build()
Builds a newImmutableExploreResult.- Returns:
- An immutable instance of ExploreResult
- Throws:
IllegalStateException- if any required attributes are missing
-
-