de.huxhorn.lilith.data.logging
Class MessageFormatter.ArgumentResult

java.lang.Object
  extended by de.huxhorn.lilith.data.logging.MessageFormatter.ArgumentResult
Enclosing class:
MessageFormatter

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 Summary
MessageFormatter.ArgumentResult(java.lang.String[] arguments, java.lang.Throwable throwable)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String[] getArguments()
           
 java.lang.Throwable getThrowable()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageFormatter.ArgumentResult

public MessageFormatter.ArgumentResult(java.lang.String[] arguments,
                                       java.lang.Throwable throwable)
Method Detail

getThrowable

public java.lang.Throwable getThrowable()

getArguments

public java.lang.String[] getArguments()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object