public static final class PlaceRequest.Builder extends Object
PlaceRequest
s. This class supports all currently
existing constructors and the PlaceRequest.with(String, String)
method.
It is not checked if any of the builder parameters are set when calling the build()
method as is
currently also possible to construct an empty PlaceRequest
(see PlaceRequest.PlaceRequest()
)Constructor and Description |
---|
PlaceRequest.Builder()
Constructor which will not initialize any internal variables; this should be done by calling either
nameToken(String) , with(String, String) or with(java.util.Map) method, e.g. |
PlaceRequest.Builder(PlaceRequest request)
'Copy' constructor for initializing a new
PlaceRequest.Builder with data from an existing
PlaceRequest , e.g. |
Modifier and Type | Method and Description |
---|---|
PlaceRequest |
build() |
PlaceRequest.Builder |
nameToken(String nameToken) |
PlaceRequest.Builder |
with(Map<String,String> params) |
PlaceRequest.Builder |
with(String name,
String value) |
PlaceRequest.Builder |
without(String name) |
public PlaceRequest.Builder()
nameToken(String)
, with(String, String)
or with(java.util.Map)
method, e.g.
PlaceRequest request = new PlaceRequest.Builder().nameToken("nameToken").build();
public PlaceRequest.Builder(PlaceRequest request)
PlaceRequest.Builder
with data from an existing
PlaceRequest
, e.g.
PlaceRequest request = placeManager.getCurrentPlaceRequest();
PlaceRequest newRequest = new PlaceRequest.Builder(request).with("newParameter", "newValue").build();
public PlaceRequest.Builder nameToken(String nameToken)
public PlaceRequest.Builder with(String name, String value)
public PlaceRequest.Builder with(Map<String,String> params)
public PlaceRequest.Builder without(String name)
public PlaceRequest build()
Copyright © 2010–2014 Arcbees. All rights reserved.