public static class MessageFormatter.ArgumentResult
extends java.lang.Object
This is just a simple class containing the result of an evaluateArgument call. It's necessary because we need to return two results, i.e. the resulting String[] and the optional Throwable.
This class is not Serializable because serializing a Throwable is generally a bad idea if the data is supposed to leave the current VM since it may result in ClassNotFoundExceptions if the given Throwable is not available/different in the deserializing VM.
Constructor and Description |
---|
ArgumentResult(java.lang.String[] arguments,
java.lang.Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String[] |
getArguments() |
java.lang.Throwable |
getThrowable() |
int |
hashCode() |
java.lang.String |
toString() |
public ArgumentResult(java.lang.String[] arguments, java.lang.Throwable throwable)
public java.lang.String[] getArguments()
public java.lang.Throwable getThrowable()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object