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