public class ConditionalPlaceRequest extends DefaultPlaceRequest
identifier, parametersNOWHERE| Constructor and Description |
|---|
ConditionalPlaceRequest() |
ConditionalPlaceRequest(String identifier)
A predicate applied to determine if this place request
should be used or the alternative specified by #orElse
|
ConditionalPlaceRequest(String identifier,
Map<String,String> parameters)
Creates a conditional place request for the given place ID with the given
state parameters for that place.
|
| Modifier and Type | Method and Description |
|---|---|
PlaceRequest |
orElse(PlaceRequest orElsePlaceRequest)
Creates a place request for the given place ID with the given
state parameters for that place.
|
PlaceRequest |
resolveConditionalPlaceRequest()
Return the place request of this conditional PlaceRequest.
|
String |
toString() |
ConditionalPlaceRequest |
when(Predicate<PlaceRequest> predicate)
Creates a place request for the given place ID with the given
state parameters for that place.
|
addParameter, clone, equals, getFullIdentifier, getIdentifier, getParameter, getParameterNames, getParameters, hashCode, isUpdateLocationBarAllowed, parse, setIdentifierfinalize, getClass, notify, notifyAll, wait, wait, waitasString, getPathpublic ConditionalPlaceRequest()
public ConditionalPlaceRequest(String identifier)
identifier - The place ID, or an empty string for the default place.public ConditionalPlaceRequest(String identifier, Map<String,String> parameters)
identifier - The place ID, or an empty string for the default place.parameters - Place-specific parameters to pass to the place. Must not be null.public ConditionalPlaceRequest when(Predicate<PlaceRequest> predicate)
predicate - Represents if default place request should be used.
If false, the place request will be orElsePlaceRequest.public PlaceRequest orElse(PlaceRequest orElsePlaceRequest)
orElsePlaceRequest - alternative place request.public PlaceRequest resolveConditionalPlaceRequest()
public String toString()
toString in class DefaultPlaceRequestCopyright © 2012–2016 JBoss by Red Hat. All rights reserved.