Java Code Examples for org.glassfish.jersey.server.internal.LocalizationMessages#METHOD_PARAMETER_CANNOT_BE_NULL
The following examples show how to use
org.glassfish.jersey.server.internal.LocalizationMessages#METHOD_PARAMETER_CANNOT_BE_NULL .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ParamConverters.java From ameba with MIT License | 5 votes |
@Override public Duration fromString(String value) { if (value == null) { throw new IllegalArgumentException( LocalizationMessages.METHOD_PARAMETER_CANNOT_BE_NULL("value") ); } return Duration.parse(value); }
Example 2
Source File: ParamConverters.java From ameba with MIT License | 5 votes |
@Override public String toString(Duration value) { if (value == null) { throw new IllegalArgumentException( LocalizationMessages.METHOD_PARAMETER_CANNOT_BE_NULL("value") ); } return value.toString(); }
Example 3
Source File: ParamConverters.java From ameba with MIT License | 5 votes |
@Override public Period fromString(String value) { if (value == null) { throw new IllegalArgumentException( LocalizationMessages.METHOD_PARAMETER_CANNOT_BE_NULL("value") ); } return Period.parse(value); }
Example 4
Source File: ParamConverters.java From ameba with MIT License | 5 votes |
@Override public String toString(Period value) { if (value == null) { throw new IllegalArgumentException( LocalizationMessages.METHOD_PARAMETER_CANNOT_BE_NULL("value") ); } return value.toString(); }
Example 5
Source File: ParamConverters.java From ameba with MIT License | 5 votes |
@Override public Instant fromString(String value) { if (value == null) { throw new IllegalArgumentException( LocalizationMessages.METHOD_PARAMETER_CANNOT_BE_NULL("value") ); } return parseInstant(value); }
Example 6
Source File: ParamConverters.java From ameba with MIT License | 5 votes |
@Override public String toString(Instant value) { if (value == null) { throw new IllegalArgumentException( LocalizationMessages.METHOD_PARAMETER_CANNOT_BE_NULL("value") ); } return value.toString(); }
Example 7
Source File: ParamConverters.java From ameba with MIT License | 5 votes |
@Override public LocalDate fromString(String value) { if (value == null) { throw new IllegalArgumentException( LocalizationMessages.METHOD_PARAMETER_CANNOT_BE_NULL("value") ); } return LocalDate.from(parseInstant(value)); }
Example 8
Source File: ParamConverters.java From ameba with MIT License | 5 votes |
@Override public String toString(LocalDate value) { if (value == null) { throw new IllegalArgumentException( LocalizationMessages.METHOD_PARAMETER_CANNOT_BE_NULL("value") ); } return value.toString(); }
Example 9
Source File: ParamConverters.java From ameba with MIT License | 5 votes |
@Override public LocalDateTime fromString(String value) { if (value == null) { throw new IllegalArgumentException( LocalizationMessages.METHOD_PARAMETER_CANNOT_BE_NULL("value") ); } return LocalDateTime.from(parseInstant(value)); }
Example 10
Source File: ParamConverters.java From ameba with MIT License | 5 votes |
@Override public String toString(LocalDateTime value) { if (value == null) { throw new IllegalArgumentException( LocalizationMessages.METHOD_PARAMETER_CANNOT_BE_NULL("value") ); } return value.toString(); }
Example 11
Source File: ParamConverters.java From ameba with MIT License | 5 votes |
@Override public LocalTime fromString(String value) { if (value == null) { throw new IllegalArgumentException( LocalizationMessages.METHOD_PARAMETER_CANNOT_BE_NULL("value") ); } return LocalTime.from(parseInstant(value)); }
Example 12
Source File: ParamConverters.java From ameba with MIT License | 5 votes |
@Override public String toString(LocalTime value) { if (value == null) { throw new IllegalArgumentException( LocalizationMessages.METHOD_PARAMETER_CANNOT_BE_NULL("value") ); } return value.toString(); }