Class NewEnrichmentItemFactory


  • public final class NewEnrichmentItemFactory
    extends java.lang.Object
    Factory class to create different NewEnrichmentItems.
    • Method Detail

      • createLocationEnrichment

        public static final NewEnrichmentItem createLocationEnrichment​(java.lang.String locationName,
                                                                       double latitude,
                                                                       double longitude)
        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)
        Throws:
        java.lang.IllegalArgumentException - Thrown if the origin or destination location names are either null or empty.