Package io.dropwizard.jersey
Class DefaultValueUtils
- java.lang.Object
-
- io.dropwizard.jersey.DefaultValueUtils
-
public final class DefaultValueUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @Nullable String
getDefaultValue(Annotation[] annotations)
Returns the value of theDefaultValue.value()
if found in annotations.
-
-
-
Method Detail
-
getDefaultValue
public static @Nullable String getDefaultValue(Annotation[] annotations)
Returns the value of theDefaultValue.value()
if found in annotations.- Parameters:
annotations
- Array of annotations (can be null).- Returns:
- Value of
DefaultValue.value()
if found, otherwise null. - Since:
- 2.0
-
-