public class Utils extends Object
| Modifier and Type | Field and Description |
|---|---|
static DateTimeFormatter |
FORMATTER |
| Constructor and Description |
|---|
Utils() |
public static final DateTimeFormatter FORMATTER
public static ZonedDateTime parseDateTime(String dateTimeString, String variableName)
public static String getDateTimeString(ZonedDateTime time)
public static String getShortStringDateTime(ZonedDateTime time)
public static String getShortStringDate(ZonedDateTime time)
public static String getShortStringTime(ZonedDateTime time)
public static boolean isBetween(ZonedDateTime start, Optional<ZonedDateTime> between, ZonedDateTime end)
true if 'between' is really between (or equal) to
start and endpublic static Set<Constants.GeneralizedModeOfTransportType> parseModesOfTransport(String modesOfTransport, String variableName)
modesOfTransport - a comma-separated list of MOTspublic static Location<?> createLocation(double latitude, double longitude)
public static String getJsonString(Object object) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic static Optional<GeoJSONFeature<GeoJSONPolygon>> getBoundingBoxFromGeometryGeoJson(List<RouteSegment> segments)
public static void checkPositiveIntegerOrEmpty(Optional<Integer> value, String variableName)
IllegalArgumentException - if value is present and negativepublic static ModeOfTransport getStandardModeOfTransport(Constants.GeneralizedModeOfTransportType type)
Copyright © 2018. All rights reserved.