public final class Fact extends java.lang.Object implements java.io.Serializable
toString() method should return a human-readable String. Facts are
immutable objects.| Constructor and Description |
|---|
Fact(java.lang.String messageKey,
java.io.Serializable value)
Constructs a new Fact with a supplied message key and value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Two Facts are considered equal if their message keys and value objects are equal.
|
java.lang.String |
getMessageKey()
Returns this Fact's name, as represented an i18n message key.
|
java.io.Serializable |
getValue()
Returns this Fact's value.
|
int |
hashCode() |
java.lang.String |
toString()
Returns a String representation of this Fact.
|
public Fact(java.lang.String messageKey, java.io.Serializable value)
messageKey - the "name" of this fact, which should be an i18n message keyvalue - the object to associate with the namepublic java.lang.String getMessageKey()
public java.io.Serializable getValue()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to testtrue if logically equal, false if notpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.