Package com.tick42.glue.desktop.intents
Class IntentRequest.Builder
- java.lang.Object
-
- com.tick42.glue.desktop.intents.IntentRequest.Builder
-
- Enclosing class:
- IntentRequest
public static class IntentRequest.Builder extends Object
Builder forIntentRequests.- Since:
- 1.4.1
- See Also:
IntentRequest.intent(String)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntentRequestbuild()Creates a newIntentRequestinstance.IntentRequest.BuilderwithContext(IntentContext<?> context)<T> IntentRequest.BuilderwithContext(String type, T data)IntentRequest.BuilderwithOptions(Map<String,Object> options)Sets application start options for this Intent request builder.IntentRequest.BuilderwithTarget(IntentTarget target)Sets target for this Intent request builder.
-
-
-
Method Detail
-
withTarget
public IntentRequest.Builder withTarget(IntentTarget target)
Sets target for this Intent request builder.- Parameters:
target- Intent target, must not benull- Returns:
- This builder, never
null
-
withContext
public IntentRequest.Builder withContext(IntentContext<?> context)
-
withContext
public <T> IntentRequest.Builder withContext(String type, T data)
-
withOptions
public IntentRequest.Builder withOptions(Map<String,Object> options)
Sets application start options for this Intent request builder.- Parameters:
options- application start options, must not benull- Returns:
- This builder, never
null
-
build
public IntentRequest build()
Creates a newIntentRequestinstance.- Returns:
- A new
IntentRequestinstance, nevernull
-
-