Class NewEnrichmentItemFactory
- java.lang.Object
-
- com.google.photos.library.v1.util.NewEnrichmentItemFactory
-
public final class NewEnrichmentItemFactory extends java.lang.Object
Factory class to create differentNewEnrichmentItem
s.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NewEnrichmentItem
createLocationEnrichment(java.lang.String locationName, double latitude, double longitude)
Creates aNewEnrichmentItem
with aLocationEnrichment
.static NewEnrichmentItem
createMapEnrichment(java.lang.String originLocationName, double originLatitude, double originLongitude, java.lang.String destinationLocationName, double destinationLatitude, double destinationLongitude)
Creates aNewEnrichmentItem
with aMapEnrichment
.static NewEnrichmentItem
createTextEnrichment(java.lang.String text)
Creates aNewEnrichmentItem
with aTextEnrichment
.
-
-
-
Method Detail
-
createTextEnrichment
public static final NewEnrichmentItem createTextEnrichment(java.lang.String text)
Creates aNewEnrichmentItem
with aTextEnrichment
.
-
createLocationEnrichment
public static final NewEnrichmentItem createLocationEnrichment(java.lang.String locationName, double latitude, double longitude)
Creates aNewEnrichmentItem
with aLocationEnrichment
.- Throws:
java.lang.IllegalArgumentException
- Thrown if the location name is null or empty.
-
createMapEnrichment
public static final NewEnrichmentItem createMapEnrichment(java.lang.String originLocationName, double originLatitude, double originLongitude, java.lang.String destinationLocationName, double destinationLatitude, double destinationLongitude)
Creates aNewEnrichmentItem
with aMapEnrichment
.- Throws:
java.lang.IllegalArgumentException
- Thrown if the origin or destination location names are either null or empty.
-
-