Package net.groboclown.retval.problems
Class LocalizedProblem
- java.lang.Object
-
- net.groboclown.retval.problems.LocalizedProblem
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)static LocalizedProblemfrom(java.lang.String localizedMessage)Create a problem from a localized string.inthashCode()java.lang.StringlocalMessage()A human-consumable message describing the problem.java.lang.StringtoString()
-
-
-
Method Detail
-
from
public static LocalizedProblem from(@Nonnull java.lang.String localizedMessage)
Create a problem from a localized string.- Parameters:
localizedMessage- message text for the problem.- Returns:
- the problem value.
-
localMessage
@Nonnull public java.lang.String localMessage()
Description copied from interface:ProblemA human-consumable message describing the problem.- Specified by:
localMessagein interfaceProblem- Returns:
- the message, localized for the end-user.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
-