Class ImmutableExploreResult.Link.Builder<SOURCE,DESTINATION>
- java.lang.Object
-
- com.chutneytesting.agent.domain.explore.ImmutableExploreResult.Link.Builder<SOURCE,DESTINATION>
-
- Enclosing class:
- ImmutableExploreResult.Link<SOURCE,DESTINATION>
@NotThreadSafe public static final class ImmutableExploreResult.Link.Builder<SOURCE,DESTINATION> extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableExploreResult.Link<SOURCE,DESTINATION>build()Builds a newLink.ImmutableExploreResult.Link.Builder<SOURCE,DESTINATION>destination(DESTINATION destination)Initializes the value for thedestinationattribute.ImmutableExploreResult.Link.Builder<SOURCE,DESTINATION>from(ExploreResult.Link<SOURCE,DESTINATION> instance)Fill a builder with attribute values from the providedLinkinstance.ImmutableExploreResult.Link.Builder<SOURCE,DESTINATION>source(SOURCE source)Initializes the value for thesourceattribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableExploreResult.Link.Builder<SOURCE,DESTINATION> from(ExploreResult.Link<SOURCE,DESTINATION> instance)
Fill a builder with attribute values from the providedLinkinstance. 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
-
source
@CanIgnoreReturnValue public final ImmutableExploreResult.Link.Builder<SOURCE,DESTINATION> source(SOURCE source)
Initializes the value for thesourceattribute.- Parameters:
source- The value for source- Returns:
thisbuilder for use in a chained invocation
-
destination
@CanIgnoreReturnValue public final ImmutableExploreResult.Link.Builder<SOURCE,DESTINATION> destination(DESTINATION destination)
Initializes the value for thedestinationattribute.- Parameters:
destination- The value for destination- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableExploreResult.Link<SOURCE,DESTINATION> build()
Builds a newLink.- Returns:
- An immutable instance of Link
- Throws:
IllegalStateException- if any required attributes are missing
-
-