public class DeprecationInfo extends Object
Constructor and Description |
---|
DeprecationInfo(String msg)
Create a new info
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getForRemoval()
Get the optional for removal information.
|
Calendar |
getForRemovalBy()
Return a date by which this member will be removed
|
String |
getMessage()
Get the message
|
DeprecationValidationMode |
getMode()
Get the optional validation mode.
|
String |
getSince()
Get the optional since information
|
int |
hashCode() |
boolean |
isForRemoval()
Is this member intended to be removed?
|
void |
setForRemoval(String value)
Set the for removal information.
|
void |
setMode(DeprecationValidationMode value)
Set the validation mode.
|
void |
setSince(String since)
Set the since information
|
public DeprecationInfo(String msg)
msg
- The msgIllegalArgumentException
- if msg is null
public String getMessage()
public String getSince()
null
public void setSince(String since)
since
- The new infopublic String getForRemoval()
null
public void setForRemoval(String value)
value
- The new removal infopublic boolean isForRemoval()
true
if the member will be removed in the futurepublic Calendar getForRemovalBy()
getForRemoval()
is formatted as 'YYYY-MM-DD'.public DeprecationValidationMode getMode()
null
public void setMode(DeprecationValidationMode value)
value
- The new modeCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.