OptionalInt
instead.@Deprecated public class IntParam extends AbstractParam<Integer>
400 Bad Request
response.Constructor and Description |
---|
IntParam(String input)
Deprecated.
|
IntParam(String input,
String parameterName)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected String |
errorMessage(Exception e)
Deprecated.
Given a string representation which was unable to be parsed and the exception thrown, produce
an entity to be sent to the client.
|
protected Integer |
parse(String input)
Deprecated.
Given a string representation, parse it and return an instance of the parameter type.
|
equals, error, get, getErrorStatus, hashCode, mediaType, toString
protected String errorMessage(Exception e)
AbstractParam
errorMessage
in class AbstractParam<Integer>
e
- the exception thrown while parsing input
protected Integer parse(@Nullable String input)
AbstractParam
parse
in class AbstractParam<Integer>
input
- the raw inputinput
, parsed as an instance of T
Copyright © 2019. All rights reserved.