@Beta public static interface Request.Param<T>
isPresent())
and utility method to nicely handles cases where the parameter is not present.| Modifier and Type | Method and Description |
|---|---|
T |
getValue() |
boolean |
isPresent() |
T |
or(Supplier<T> defaultValueSupplier) |
boolean isPresent()
@CheckForNull T getValue()
IllegalStateException - if param is not present.@CheckForNull T or(Supplier<T> defaultValueSupplier)
Copyright © 2009–2017 SonarSource. All rights reserved.